Part Number Hot Search : 
B432AK3 1N4565 SK158 1827135X PM8380 40N60 X7R2220 AON2812
Product Description
Full Text Search
 

To Download W925C240 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  p reliminary w925e/c240 8 - bit cid microcontroller - 1 - release da te : 2002 / 5 / 13 revision : a 3 1 general description ................................ ................................ ................................ ...................... 3 2 features ................................ ................................ ................................ ................................ .................. 3 3 pin configuration ................................ ................................ ................................ ............................ 5 4 pin description ................................ ................................ ................................ ................................ ... 6 5 block diagram ................................ ................................ ................................ ................................ ... 8 6 functional descripti on ................................ ................................ ................................ .............. 9 6.1 m emory o rganization ................................ ................................ ................................ ................... 10 6.2 s pecial f unction r egisters ................................ ................................ ................................ ........... 13 6.3 i nstruction ................................ ................................ ................................ ................................ ....... 30 6.4 p ower m anagement ................................ ................................ ................................ ........................ 33 6.5 r eset ................................ ................................ ................................ ................................ ................... 34 6.6 i nterrupt ................................ ................................ ................................ ................................ ........... 34 6.7 p rogrammable t imers /c ounters ................................ ................................ ................................ 36 6.8 s erial p ort 1 ................................ ................................ ................................ ................................ ..... 40 6.9 c omparator ................................ ................................ ................................ ................................ ...... 41 6.10 dtmf g enerator ................................ ................................ ................................ ............................. 42 6.11 fsk g enerator ................................ ................................ ................................ ................................ 43 6.12 i/o p orts ................................ ................................ ................................ ................................ ............. 44 6.13 d i vider ................................ ................................ ................................ ................................ ................ 45 6.14 c alling i dentity d elivery (cid) ................................ ................................ ................................ . 46 7 electrical character istics ................................ ................................ ................................ . 59 7.1 m aximum r atings * ................................ ................................ ................................ .......................... 59 7.2 r ecommended o perating c onditions ................................ ................................ ......................... 59 7.3 dc e lectrical c haracteristics ................................ ................................ ................................ .. 59 7.4 e lectrical c haracteristics - g ain c ontrol op - a mplifier ................................ .................. 61 7.5 ac e lectrical c haracteristics ................................ ................................ ................................ .. 61 8 packa ge ................................ ................................ ................................ ................................ .................. 64
p reliminary w925e/c240 8 - bit cid microcontroller - 2 - release da te : 2002 / 5 / 13 revision : a 3 f igure 3 - 1 w925e/c240 p in c onfiguration ................................ ................................ ................................ .. 5 f igure 6 - 1 p rogram m emory m ap ................................ ................................ ................................ ................ 10 f igure 6 - 2 memory map ................................ ................................ ................................ ................................ .... 11 f igure 6 - 3 s cratchpad ram/r egister a ddressing ................................ ................................ .................. 12 f igure 6 - 4 t he s tructure of cid f lags ................................ ................................ ................................ ...... 35 f igure 6 - 5 m ode 0 & m ode 1 of t imer /c ounter 0 & 1 ................................ ................................ .............. 37 f igure 6 - 6 m ode 2 of t imer /c ounter 0 & 1 ................................ ................................ ................................ 38 f igure 6 - 7 w atchdog t imer ................................ ................................ ................................ ........................... 39 f igure 6 - 8 t iming of the s erial p ort 1 i nput f unction ................................ ................................ ........... 41 f igure 6 - 9 t iming of the s erial p ort 1 o utput f unction ................................ ................................ ....... 41 f igure 6 - 10 t he c onfiguration of c omparator ................................ ................................ ....................... 42 f igure 6 - 11 t he r elation b etween dtmf and k eypad ................................ ................................ ........... 42 f igure 6 - 12 fsk m odulator ................................ ................................ ................................ .......................... 43 f igure 6 - 13 13/14 - bit d ivider ................................ ................................ ................................ ......................... 45 f igure 6 - 14 t he cid b lock d iagram ................................ ................................ ................................ ........... 46 f igure 6 - 15 a pplication c ircuit of the r ing d etector ................................ ................................ ........... 47 f igure 6 - 16 d ifferential i nput g ain c ontrol c ircuit ................................ ................................ ............ 48 f igure 6 - 17 s ingle - e nded i nput g ain c ontrol c ircuit ................................ ................................ ........... 48 f ig ure 6 - 18 g uard t ime w aveform of a lert t one s ignal d etection ................................ ................ 49 f igure 6 - 19 t he w aveform of dtmf d etection ................................ ................................ ....................... 50 f igure 6 - 20 fsk d et ection e nable and fsk c arrier p resent and a bsent t iming .......................... 50 f igure 6 - 21 s erial d ata i nterface t iming of fsk d emodulation ................................ ....................... 51 f igur e 6 - 22 i nternal cid g ain c ontrol r egister s etting w aveform ................................ ............... 52 f igure 6 - 23 a pplication c ircuit of cid ................................ ................................ ................................ ...... 53 f igure 6 - 24 i nput and o u tput t iming of b ellcore o n - hook d ata t ransmission ............................. 54 f igure 6 - 25 i nput and o utput t iming of b ellcore o ff - hook d ata t ransmission ............................ 55 f igure 6 - 26 i nput and o utput t iming of bt i dle s tate (o n - hook ) d ata t ransmission .................. 56 f igure 6 - 27 i nput and o utput t iming of bt l oop s tate (o ff - hook ) d ata t ransmission ............... 57 f igure 6 - 28 i nput and o utput t iming of cca c aller d isplay s ervice d ata t ransmission .......... 58
p reliminary w925e/c240 8 - bit cid microcontroller - 3 - release da te : 2002 / 5 / 13 revision : a 3 1 general description the w925e/c240 is an all - in - 1 single 8 - bit micro - controller with widely used calling identity delivery (cid) function. the 8 - bit cpu core is based on the 8051 family; therefore, all the instructions are compatible to the 8051 series. the cid part consists fsk decoder, dtmf receiver, cpe* alert signal (cas) detector and ring d etector. also built - in dtmf generator and fsk generator with baud rate 1200 bps (bits/sec). using w925e/c240 can easily implement the cid adjunct box and the feature phone or short message service (sms) phone with cid function. the main features are listed in the next section. 2 features application : the sms phone with cid function and cid adjunct box. cpu : 8 - bit micro - controller is similar to the 8051 family. - operating voltage: m c: 2.2 to 5.5 volt. cid: 3.0 to 5.5 volt. dual - clock operation: - main oscillator: 3.58mhz crystal for cid and dtmf function. and built - in rc oscillator. - sub oscillator: 32768hz crystal. - main and sub oscillators are enable/disable by bit control i ndividually. rom : 256k bytes internal flash eeprom/mask rom type. - up 128k bytes for program rom. - total 256k bytes for look - up table rom. - separate 256k into 4 pages, each page is 64k addressable. ram : - 256 bytes on chip scratch - pad ram. - 8k byt es on chip ram for movx instruction. cid - compatible with bellcore tr - nwt - 000030 & sr - tsv - 002476, british telecom(bt) sin227, u.k. cable communication association(cca) specification. - fsk modulator/demodulator: for bell 202 and itu - t v.23 fsk with 1200 baud rate. - cas detector: for dual tones of b ellcore cas and bt idle state and loop state dual tone alert signal (dtas) . - dtmf generator/receiver; dtmf receiver can be programmed as a tone detector. - ring detector: for line reversal for bt, ring burst for cca or ring signal for bellcore. - two independent op amps with adjustable gain for tip/ring and telephone hybrid connections. i/o : 40 i/o pins. - p0: bit and byte addressable. i/o mode can be bit controlled. open drain type. - p1~p 3 : bit and byte addressable. pull high and i/o mode can be bit controlled. - p4: byte addressable . pull high and i/o mode can be bit controlled. note : ? cpe* ? customer premises equipment
p reliminary w925e/c240 8 - bit cid microcontroller - 4 - release da te : 2002 / 5 / 13 revision : a 3 power mode : - normal mode : normal operation. - dual - clock slow operation mode : s ystem is operated by the sub - oscillator (f osc =f s and fm is stopped) - idle mode : cpu hold. the clock to the cpu is halted, but the interrupt, timer and watchdog timer block work normally but cid function is disabled. - power down mode : all activity is c ompletely stopped and power consumption is less than 1 m a. timer : 2 13/16 - bit timers, or 8 - bit auto - reload timers, that are timer0 and timer1. watchdog timer : wdt can be programmed by the user to serve as a system monitor. interrupt: 11 interrupt sou rces with two levels of priority. - 4 interrupts from int0, int1, int2 and int3. - 2 interrupts from timer0, timer1. - 1 interrupt from serial port . - 1 interrupt from cid. - 1 interrupt from 13/14 - bit divider. - 1 interrupt from comparator. - 1 interrupt from watch dog timer. divider: 13/14 bit divider, clock source from sub - oscillator, therefore, divf set every 0.25/0.5 second. comparator: - comparator: 1 analog inputs from vneg pin, 2 reference input pins, one is from vpos pin and another is from i nternal regulator output. serial port: - a n 8 - bit serial transceiver with sclk and sdata. . package: - 100pin qfp
p reliminary w925e/c240 8 - bit cid microcontroller - 5 - release da te : 2002 / 5 / 13 revision : a 3 3 pin configuration figure 3 - 1 shows the pin assignment. the package type is 100 pin qfp. w925e/c240 buz 79 ea/data 80 test/mode 78 p17 77 p16 76 p15 75 p14 74 p13 73 p12 72 p11 71 p10 70 p27 69 p26 68 p25 67 p24 66 p23 65 p22 64 p21 63 p20 62 p37 61 p36 60 p35 59 p34 58 p33 57 p32 56 p31 55 p30 54 p47 53 p46 52 p45 51 p44/vpos 50 p43 49 p42/vneg 48 p41 47 p40 46 dtmf/fsk 45 nc 42 nc 41 nc 30 nc 29 nc 28 nc 27 nc 26 nc 25 nc 24 nc 23 nc 22 nc 21 nc 20 nc 19 nc 18 nc 17 nc 16 nc 15 nc 14 nc 13 nc 12 nc 11 nc 10 nc 9 nc 8 nc 7 nc 6 nc 5 nc 4 nc 3 nc 2 nc 1 nc 100 nc 99 nc 98 nc 97 nc 96 inp2 40 inn2 39 gcfb2 38 vas 37 vad 36 gcfb1 35 inn1 34 inp1 33 vref 32 cap 31 rngdi 44 rngrc 43 p07 95 p06 94 p05 93 p04 92 p03 91 p02 90 p01 89 p00 88 vss 87 xout1 86 xin1 85 reset/vpp 84 vdd 83 xin2 82 xout2 81 figure 3 - 1 w925e/c240 pin configuration
p reliminary w925e/c240 8 - bit cid microcontroller - 6 - release da te : 2002 / 5 / 13 revision : a 3 4 pin description test/mode i/o test pin. in e version, it works as a mode pin to select programming mode. in c version (mask type), this pin with internal pull - low resi stor. ea /data i,i/o set high for normal function. in e version, it works as a data pin. in c version, this pin with internal pull - high resistor. reset /vpp i reset pin. a low pulse causes the whole chip reset. in e version , this pin work as a vpp pin which is a supply programming voltage. in c version, this pin with internal pull - high resistor. rngdi i ring detect input (schmitt trigger input). used for ring detection and line reversal detection. must maintain a voltage be tween vad and vas. rngrc o ring rc (open drain output and schmitt trigger input). used to set the time interval from the end of rngdi pin to the inactive condition of the rngon pin. an external resistor must connected to vad and a capacitor connected to v ss, the time interval is the rc time constant. cap o must be connected 0.1 m f capacitor to vss. vref o reference voltage. nominally, vdd/2 is used to bias the input of the gain control op - amp. gcfb1 o op - amp1 feed - back gain control signal. select the input gain by connecting this pin and the inn1 pin with feed - back resistor. it is recommended that the op - amp1 be set to unity gain. inn1 i inverting input of the gain control op - amp1. inp1 i non - inverting input of the gain control op - amp1. gcfb2 o op - amp2 feed - back gain control signal. select the input gain by connecting this pi n and the inn2 pin with feed - back resistor. it is recommended that the op - amp2 be set to unity gain. inn2 i inverting input of the gain control op - amp2. inp2 i non - inverting input of the gain control op - amp2. vad i analog voltage supply. vas i analog g round. vdd i digital voltage supply. vss i digital ground. xout1 o output pin for main - oscillator. connected to 3.58mhz crystal for cid function. xin1 i input pin for main - oscillator. connected to 3.58mhz crystal for cid function. xout2 o output pin for sub - oscillator with internal oscillation capacitor. connected to 32.768khz crystal only. xin2 i input pin for sub - oscillator must add an external capacitor about 15pf to ground(vss) for the accuracy of the oscillator. connected to 32.768khz crystal on ly. dtmf/fsk o fte=0, dual - tone multi - frequency(dtmf) signal output fte=1, fsk signal output
p reliminary w925e/c240 8 - bit cid microcontroller - 7 - release da te : 2002 / 5 / 13 revision : a 3 buz o buzzer output pin. if buzzer function is disabled, buz pin is in floating state. p00 - p07 i/o input/output port0. port0 data can be bit controlled. the i/o mode is controlled by p0io register. port0 is open drain type when it is configured as output mode. p10 - p17 i/o input/output port1 with pull high resistors. port1 data can be bit controlled. the i/o mode is controlled by p1io register. the p10 - p13 an d p14 - p17 indicate the external interrupt pins(int2 and int3) p20 - p27 i/o input/output port2 with pull high resistors. port2 data can be bit controlled. the i/o mode is controlled by p2io register. p30 - p37 i/o input/output port3 with pull high resistors . port3 data can be bit controlled. the i/o mode is controlled by p3io register. the special function of port3 is referred to the description of p3 register. p40 - p47 i/o contents are byte controlled. pull high and i/o mode can be bit controlled. the speci al function of p4 is referred to the description of p4 register. vpos, vneg i the comparator v+, v - analog input pins. share pin with p4.2 and p4.4
p reliminary w925e/c240 8 - bit cid microcontroller - 8 - release da te : 2002 / 5 / 13 revision : a 3 5 block diagram fsk,cas (w91030) rngdi rngrc inp2 inn2 gcfb2 vref cap 8-bit m c cide fske case s/p dclk data fd7~fd0 rng algo fdr fcd dtmf receiver dtmfh dtmfl dd3~dd0 p0 8 p1 8 p2 8 p3 8 p4 8 x i n 1 x o u t 1 x i n 2 x o u t 2 v d d v s s v a d v a s internal cid and uc interface signal fdata d-latch dtmfd rngf algof fdrf dtmfdf fosc cash,casl inp1 inn1 gcfb1 caspt casat dtmfpt dtmfat ck r e s e t / v p p e a / d a t a dtmfe b u z d t m f / f s k test/mode rst f m dclk fsk modulator fsf
p reliminary w925e/c240 8 - bit cid microcontroller - 9 - release da te : 2002 / 5 / 13 revision : a 3 6 functional descripti on the w925e/c240 is an 8 - bit micro - c ontroller with cid function. the 8 - bit micro - control has the same instruction set as the 8051 family, with one addition: dec dptr (op - code a5h, the dptr is decreased by 1). in addition, the w925e/c240 contains on - chip 8k bytes movx ram. rom: there are 256k bytes eeprom/mask rom. only 128k bytes eeprom/mask rom is used for program code. the completely 256k bytes eeprom/mask rom can be used for the look - up table memory. on - chip data ram: the w925e/c240 has 8k normal ram which address is from 0000h to 1fffh. i t only can be accessed by movx instruction; this on - chip ram is optional under software control. the on - chip data ram is not used for executable program memory. there is no conflict or overlap among the 256 bytes scratchpad ram and the 8k bytes movx ram as they use different addressing modes and separate instructions. cid: the cid functions include the fsk decoder, cas detector, dtmf decoder and ring detector. fsk modulator: support itu - t v.23 and bellcore 202 fsk transmit modulated signal. dtmf modulator: the w925e/c240 built - in dual tone mu l ti - frequency generator. i/o ports: the w925e/c240 has five 8 - bit i/o ports giving a total of 40 lines. port0 to port3 can be used as an 8 - bit general i/o port with bit - addressable. the i/o mode of each port is controlle d by pxio registers. port1 to port4 have internal pull high resistors enabled/disabled by pxh registers. port0 is open - drain type in output mode. serial i/o port: the serial port, through p4.0 (sclk) and p4.1 (sdata), is an 8 - bit synchronous serial i/o int erface. timers: the w925e/c240 has two 13/16 - bit timers or 8 bits auto - reload timers. an independent watchdog timer is used as a system monitor or as a very long time period timer. a divider can produce the divider interrupt in every period of 0.5s or 0.2 5s. comparator: the w925e/c240 has an internal comparator with one external analog signal input path vneg and an external path vpos or a regulator voltage for the reference input ref1. interrupts: the w925e/c240 provides eleven interrupt resources with two priority level, including 4 external interrupt sources, 2 timer interrupts, 1 cid interrupt, 1 divider interrupt, 1 serial port interrupt, 1 comparator interrupt and 1 watchdog timer interrupt. power management: the w925e/c240 has idle and power down mode s of operation. in the idle mode, the clock to the cpu core is stopped however the functions of the timers, divider, cid and interrupts are active continuously. in the power down mode, both of the system clock stop oscillating and the chip operation is com pletely stopped. power down mode is the state of the lowest power consumption.
p reliminary w925e/c240 8 - bit cid microcontroller - 10 - release da te : 2002 / 5 / 13 revision : a 3 6.1 memory organization the w925e/c240 separates the memory into two separate sections, the program memory and the data memory. the program memory is used to store the instruction op - codes and look - up table data, while the data memory is used to store data or for memory mapped devices. program memory: the program memory on the w925e/c240 can be up to 256k bytes that are divided into 4 pages, each page has the size of 64k bytes. the upper 128k bytes are used to store the op - codes and the whole 256k can be used to store look - up table data. because the op - code is 64k addressable, a pg bit in page register decides which rom page between page0 and page1 is enabled and the alu fetches the op - code from the selected rom page. if pg=0, alu fetches the op - code from page0. if pg=1, alu fetches the op - code from page1. when movc instruction is executed, alu fetches the look - up table data according the indication of lt1 and lt0 bits. the value of l t1 and lt0 indicates which rom page is active for look - up table instruction. 64k page0 64k page3 64k page2 64k page1 3ffff 0ffff 1ffff 2ffff 30000 00000 10000 20000 pg=0 pg=1 lt1,0 =00 lt1,0 =01 lt1,0 =10 lt1,0 =11 figure 6 - 1 program memory map data memory: the w925e/c240 contains on - chip 8k movx ram of data memory , which can only be accessed by movx instructions from the address 0000h to 1fffh. in addition, the w925e/c240 has 256 bytes of on - chip scratchpad ram. this can be accessed either by direct addressing or by indirect addressing. there are also special funct ion registers (sfrs), which can only be accessed by direct addressing. since the scratchpad ram is only 256 bytes, it can be used only when data contents are small. in the event that larger data contents are present, the only one selection is on - chip movx ram. the on - chip movx ram can only be accessed by a movx instruction. however, the on - chip ram has the fastest access times. the memory map is shown figure 6 - 2 and figure 6 - 3 shows the scratched - pad ram/register addressing.
p reliminary w925e/c240 8 - bit cid microcontroller - 11 - release da te : 2002 / 5 / 13 revision : a 3 8k byte sram on chip 0000h 1fffh indirect addressing ram direct & indirect addressing ram sfrs direct addressing only 7fh 00h ffh 80h figure 6 - 2 memory map
p reliminary w925e/c240 8 - bit cid microcontroller - 12 - release da te : 2002 / 5 / 13 revision : a 3 ffh 80h 7fh 30h 2fh 2eh 2dh 2ch 2bh 2ah 29h 28h 27h 26h 25h 24h 23h 22h 21h 20h 1fh 18h 17h 10h 0fh 08h 07h 00h 78 79 7a 7b 7c 7d 7e 7f 70 71 72 73 74 75 76 77 68 69 6a 6b 6c 6d 6e 6f 60 61 62 63 64 65 66 67 58 59 5a 5b 5c 50 51 52 53 54 5d 5e 5f 55 56 57 48 49 4a 4b 4c 4d 4e 4f 40 41 42 43 44 45 46 47 38 39 3a 3b 3c 3d 3e 3f 30 31 32 33 34 35 36 37 28 29 2a 2b 2c 2d 2e 2f 20 21 22 23 24 25 26 27 18 19 1a 1b 1c 1d 1e 1f 10 11 12 13 14 15 16 17 08 09 0a 0b 0c 0d 0e 0f 00 01 02 03 04 05 06 07 indirect ram direct ram bank 3 bank 2 bank 1 bank 0 bit addressable 20h - 2fh figure 6 - 3 scratchpad ram/register addre ssing
p reliminary w925e/c240 8 - bit cid microcontroller - 13 - release da te : 2002 / 5 / 13 revision : a 3 6.2 special function registers the w925e/c240 uses special function registers (sfrs) to control and monitor peripherals and their modes. the sfrs reside in the register locations 80 - ffh and are accessed by direct addressing only. some of the sfrs are bi t addressable. this is very useful in cases where one wishes to modify a particular bit without changing the others. the sfrs that are bit addressable are those whose addresses end in 0 or 8. the list of sfrs is as follows. the table is condensed with eigh t locations per row. empty locations indicate that there are no registers at these addresses. the content of reserved bits or registers is not guaranteed. table 1 special function register location table f8 eip cidgd cidga f0 b e8 eie e0 acc d8 wdcon d0 psw c8 divc c0 scon1 sbuf1 regvc pmr status fsktc fsktb b8 ip dtmfg compr irc1 irc2 caspt casat b0 p3 cidr cidfg cidpcr fskdr dtmfdr dtmfpt dtmfat a8 ie p4io a0 p2 hb p 4h p4 98 p1ef p1h p2h p3h 90 p1 exif r page p1sr p0io p1io p2io p3io 88 tcon tmod tl0 tl1 th0 th1 ckcon1 ckcon2 80 p0 sp dpl dph dpl1 dph1 dps pcon note: the sfrs in the column with dark borders are bit - addressable. a brief description of the sfrs now follows. port 0 (initial=ffh, input mode) bit: 7 6 5 4 3 2 1 0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 mnemonic: p0 address: 80h p0: p0 can be selected as input or output mode by the p0io register. at initial reset, p0io is set to ffh, p0 is used as input mode. when p0io is set to 0, the p0 is used as cmos open drain mode. stack pointer (initial=07h) bit: 7 6 5 4 3 2 1 0 sp.7 sp.6 sp.5 sp.4 sp.3 sp.2 sp.1 sp.0 mnemonic: sp address: 81h sp: the stack pointer stores th e scratchpad ram address where the stack begins. in other words, it always points to the top of the stack.
p reliminary w925e/c240 8 - bit cid microcontroller - 14 - release da te : 2002 / 5 / 13 revision : a 3 data pointer low (initial=00h) bit: 7 6 5 4 3 2 1 0 dpl.7 dpl.6 dpl.5 dpl.4 dpl.3 dpl.2 dpl.1 dpl.0 mnemonic: dpl address: 82h dpl: th is is the low byte of the standard 8052 16 - bit data pointer. data pointer high (initial=00h) bit: 7 6 5 4 3 2 1 0 dph.7 dph.6 dph.5 dph.4 dph.3 dph.2 dph.1 dph.0 mnemonic: dph address: 83h dph: this is the high byte of the standard 8052 16 - bit data pointer. data pointer low1 (initial=00h) bit: 7 6 5 4 3 2 1 0 dpl1.7 dpl1.6 dpl1.5 dpl1.4 dpl1.3 dpl1.2 dpl1.1 dpl1.0 mnemonic: dpl1 address: 84h dpl1: this is the low byte of the new additional 16 - bit data pointer that has been added t o the w925e/c240. the user can switch between dpl, dph and dpl1, dph1 simply by setting register dps.0 = 1. the instructions that use dptr will now access dpl1 and dph1 in place of dpl and dph. if they are not required they can be used as conventional regi ster locations by the user. data pointer high1 (initial=00h) bit: 7 6 5 4 3 2 1 0 dph1.7 dph1.6 dph1.5 dph1.4 dph1.3 dph1.2 dph1.1 dph1.0 mnemonic: dph1 address: 85h dph1: this is the high byte of the new additional 16 - bit data pointer that ha s been added to the w925e/c240. the user can switch between dpl, dph and dpl1, dph1 simply by setting register dps = 1. the instructions that use dptr will now access dpl1 and dph1 in place of dpl and dph. if they are not required they can be used as conve ntional register locations by the user. data pointer select (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - - - - dps.0 mnemonic: dps address: 86h dps.0: this bit is used to select either the dpl,dph pair or the dpl1,dph1 pair as the active data poi nter. when set to 1, dpl1,dph1 will be selected, otherwise dpl,dph will be selected. dps.1 - 7:these bits are reserved, but will read 0.
p reliminary w925e/c240 8 - bit cid microcontroller - 15 - release da te : 2002 / 5 / 13 revision : a 3 power control (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - idlt gf1 gf0 pd idl mnemonic: pcon address: 87h idlt: this bit controls the idle mode type. in idle mode when idle mode is released by any interrupt, if idlt=1 it will not jump to the corresponding interrupt; if idlt=0 it will jump to the corresponding interrupt. gf1 - 0: these two bits are general pu rpose user flags. pd: setting this bit causes the w925e/c240 to go into the power down mode. in this mode all the clocks are stopped and program execution is frozen. power down mode can be released by int0~int3 and ring detection of cid interrupt. idl: set ting this bit causes the w925e/c240 to go into the idle mode. the type of idle mode is selected by idlt. in this mode the clocks to the cpu are stopped, so program execution is frozen. but the clock path to the timers blocks and interrupt blocks is not sto pped, and these blocks continue operating. timer control (initial=00h) bit: 7 6 5 4 3 2 1 0 tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 mnemonic: tcon address: 88h tf1: timer 1 overflow flag. this bit is set when timer 1 overflows. it is cleared automatic ally when the program does a timer 1 interrupt service routine. software can also set or clear this bit. tr1: timer 1 run control. this bit is set or cleared by software to turn timer on or off. tf0: timer 0 overflow flag. this bit is set when timer 0 over flows. it is cleared automatically when the program does a timer 0 interrupt service routine. software can also set or clear this bit. tr0: timer 0 run control. this bit is set or cleared by software to turn timer on or off. ie1: interrupt 1 edge detect: s et by hardware when an edge/level is detected on int 1 . this bit is cleared by hardware when the service routine is vectored to only if the interrupt was edge triggered. otherwise it follows the pin. it1: interrupt 1 type control: set/cleare d by software to specify falling edge/ low level triggered external inputs. ie0: interrupt 0 edge detect: set by hardware when an edge/level is detected on int 0 . this bit is cleared by hardware when the service routine is vectored to only i f the interrupt was edge triggered. otherwise it follows the pin. it0: interrupt 0 type control. set/cleared by software to specify falling edge/ low level triggered external inputs. timer mode control (initial=00h) bit: 7 6 5 4 3 2 1 0 gate c/ t m1 m0 gate c/ t m1 m0 mnemonic: tmod address: 89h bit7~4 control timer 1, bit3~0 control timer0 gate: gating control. when this bit is set, timer x is enabled only while intx pin is high and trx contro l bit is set. when cleared, timer x is enabled whenever trx control bit is set.
p reliminary w925e/c240 8 - bit cid microcontroller - 16 - release da te : 2002 / 5 / 13 revision : a 3 c/ t : timer or counter select. when cleared, the timer is incremented by internal clocks. when set, the timer counts high - to - low edges of the tx pin. note: x is either 0 or 1. m1, m0: mode select bits: m1 m0 mode 0 0 mode 0: 13 - bits timer 0 1 mode 1: 16 - bits timer 1 0 mode 2: 8 - bits with auto - reload from thx 1 1 reserved timer 0 l ow byte (initial=00h) bit: 7 6 5 4 3 2 1 0 tl0.7 tl0.6 tl0.5 tl0.4 tl 0.3 tl0.2 tl0.1 tl0.0 mnemonic: tl0 address: 8ah tl0.7 - 0: timer 0 low byte register. timer 1 low byte (initial=00h) bit: 7 6 5 4 3 2 1 0 tl1.7 tl1.6 tl1.5 tl1.4 tl1.3 tl1.2 tl1.1 tl1.0 mnemonic: tl1 address: 8bh tl1.7 - 0: timer 1 low byt e register. timer 0 high byte (initial=00h) bit: 7 6 5 4 3 2 1 0 th0.7 th0.6 th0.5 th0.4 th0.3 th0.2 th0.1 th0.0 mnemonic: th0 address: 8ch th0.7 - 0: timer 0 high byte register. timer 1 high byte (initial=00h) bit: 7 6 5 4 3 2 1 0 th1. 7 th1.6 th1.5 th1.4 th1.3 th1.2 th1.1 th1.0 mnemonic: th1 address: 8dh th1.7 - 0: timer 1 high byte register.
p reliminary w925e/c240 8 - bit cid microcontroller - 17 - release da te : 2002 / 5 / 13 revision : a 3 clock control1 (initial=00h) bit: 7 6 5 4 3 2 1 0 wd1 wd0 t1s1 t1s0 t0s1 t0s0 divs m /s mnemonic: ckcon1 addre ss: 8eh wd1 - 0: watchdog timer mode select bits: these bits determine the time - out period for the watchdog timer. in all four time - out options the reset time - out is 512 clocks more than the interrupt time - out period. wd1 wd0 interrupt time - out reset time - ou t 0 0 fosc/2 12 fosc/2 12 + 512 0 1 fosc/2 15 fosc/2 15 + 512 1 0 fosc/2 18 fosc/2 18 + 512 1 1 fosc/2 21 fosc/2 21 + 512 t0s0 - 1&t1s0 - 1: timer0 & timer1 clock source mode select bits. these bits determine the timer0 & timer1 clock source. t0s1 (t1s1) t0s0 (t1 s0) prescale clock source 0 0 fosc/2 2 0 1 fosc/2 6 1 0 fosc/2 10 1 1 fs divs: divider clock source control bit 1: divs = 0 : fs/2 13 divs= 1 : fs/2 14 m /s: system clock source control bit : m /s = 0 : fosc = xin1 ( f m ) m /s = 1 : fosc = xin2 ( fs) clock control2 (initial=00h) bit: 7 6 5 4 3 2 1 0 enbuz buzsl kt1 kt0 - - - - mnemonic: ckcon2 address: 8fh enbuz: when enbuz=1 the buz pin works as buzzer output, ot herwise buz pin is in floating state. buzsl: buzzer output selection. when buzsl=0 buz is the output of octave tone. when buzzl=1, buz is the output of key tone. kt1 - 0: key tone frequency sources from divider. when divider is enable, kt1 and kt0 determines the key tone frequency. kt1 kt0 key tone frequency 0 0 low 0 1 512hz 1 0 1024hz 1 1 2048hz port 1 (initial=ffh, input mode) bit: 7 6 5 4 3 2 1 0 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0
p reliminary w925e/c240 8 - bit cid microcontroller - 18 - release da te : 2002 / 5 / 13 revision : a 3 mnemonic: p1 address: 90h p1.7 - 0: p1 can be select ed as input or output mode by the p1io register , at initial reset , p1io is set to 1, so p1 is used as input mode . when p1io is set to 0 , the p1 is used as cmos output mode . when p1ef are set and p1io are set as input mode , p1 can be used as externa l interrupt source. the functions are listed below . p1.0 : int2.0 external interrupt 2 p1.1 : int2.1 external interrupt 2 p1.2 : int2.2 external interrupt 2 p1.3 : int2.3 external interrupt 2 p1.4 : int3.0 external interrupt 3 p1.5 : int3.1 external interrupt 3 p1.6 : int3.2 external interrupt 3 p1.7 : int3.3 external interrupt 3 external interrupt flag (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - compf divf cidf ie3 ie2 mnemonic: exif address: 91h compf: comparator flag. set by hardware w hen resc bit is from low to high. divf: divider overflow flag. cidf: cid interrupt flag. set by hardware when at least one of cid flags is set. ie3: external interrupt 3 flag. set by hardware when a falling edge is detected on int3. ie2: external interrupt 2 flag. set by hardware when a falling edge is detected on int2. rom page pointer (initial=00h) bit: 7 6 5 4 3 2 1 0 - - lt1 lt0 - - - pg mnemonic: r page address: 92h lt1 and lt0 determine the rom page of the instruction movc reading the cont ent from rom. rom page rom address (lt1,lt0) = (0, 0) page 0 00000h - 0ffffh (lt1,lt0) = (0, 1) page 1 10000h - 1ffffh (lt1,lt0) = (1, 0) page 2 20000h - 2ffffh (lt1,lt0) = (1, 1) page 3 30000h - 3ffffh pg = 0 indicates the executing program is in page 0, fr om 00000h - 0ffffh pg = 1 indicates the executing program is in page 1, from 10000h - 1ffffh p1 pins status (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7sr p1.6sr p1.5sr p1.4sr p1.3sr p1.2sr p1.1sr p1.0sr mnemonic: p1sr address: 93h p1sr: set when a fal ling edge is detected on the corresponding p1 pin, clear by software.
p reliminary w925e/c240 8 - bit cid microcontroller - 19 - release da te : 2002 / 5 / 13 revision : a 3 p0 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p0.7io p0.6io p0.5io p0.4io p0.3io p0.2io p0.1io p0.0io mnemonic: p0io address: 94h p0io: p0 pins i/o control. 1: inpu t mode 0: output mode p1 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p1.7io p1.6io p1.5io p1.4io p1.3io p1.2io p1.1io p1.0io mnemonic: p1io address: 95h p1io: p1 pins i/o control. 1: input mode 0: output mode p2 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p2.7io p2.6io p2.5io p2.4io p2.3io p2.2io p2.1io p2.0io mnemonic: p2io address: 96h p2io: p2 pins i/o control. 1: input mode 0: output mode p3 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p3.7io p3.6io p3.5io p3.4io p3.3io p3.2io p3.1io p3.0io mnemonic: p3io address: 97h p3io: p3 pins i/o control. 1: input mode 0: output mode p1 pins interrupt eable (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7ef p1.6ef p1 .5ef p1.4ef p1.3ef p1.2ef p1.1ef p1.0ef mnemonic: p1ef address: 9bh p1ef: p1 pins interrupt function enabled/disabled register 0: disable 1: enable p1 pull - high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7h p1.6h p1.5h p1.4h p1.3h p1.2h p1.1h p1.0h mnemonic: p1h address: 9dh p1h: port1 pins pull - high resistor enable/disable 1: enable 0: disable
p reliminary w925e/c240 8 - bit cid microcontroller - 20 - release da te : 2002 / 5 / 13 revision : a 3 p2 pull - high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p2.7h p2.6h p2.5h p2.4h p2.3h p2.2h p2.1h p2.0h mnemonic: p2h address: 9eh p2h: port1 pins pull - high resistor enable/disable 1: enable 0: disable p3 pull - high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p3.7h p3.6h p3.5h p3.4h p3.3h p3.2h p3.1h p3.0h mnemonic: p3h addr ess: 9fh p3h: port1 pins pull - high resistor enable/disable 1: enable 0: disable port 2 (initial=ffh, input mode) bit: 7 6 5 4 3 2 1 0 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 mnemonic: p2 address: a0h p2.7 - 0: port 2 is a i/o p ort with internal pull - high resistor. p2 can be selected as input or output mode by the p2io register. at initial reset, p2 is used as input mode. when p2io is set to 0, p2 is used as cmos output mode. high byte register (initial=00h) bit: 7 6 5 4 3 2 1 0 hb.7 hb.6 hb.5 hb.4 hb.3 hb.2 hb.1 hb.0 mnemonic: hb address: a1h this register contains the high byte address during execution of " movx @ri, " instructions. p4 pull - high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p4.7h p4.6h p4.5h p4.4h p4.3h p4.2h p4.1h p4.0h mnemonic: p4h address: a2h p4h: port4 pins pull - high resistor enable/disable 1: enable 0: disable port 4 (initial=ffh, input mode) bit: 7 6 5 4 3 2 1 0 p4.7 p4.6 p4.5 p4.4 p4.3 p4.2 p4.1 p4.0 mnemon ic: p4 address: a6h p4.7 - 0: port 4 is a i/o port with internal pull - high resistor. p4 can be selected as input or output mode by the p4io register, at initial reset, p4io is set to 0ffh, p4 is used as input mode. when p4io is set to 00h, p4 is used as cmos output mode. special function of p4 is described below.
p reliminary w925e/c240 8 - bit cid microcontroller - 21 - release da te : 2002 / 5 / 13 revision : a 3 p4.7 - 5 i/o normal i/o p4.4 vpos positive input of the comparator p4.2 vneg negative input of the comparator p4.1 sdata serial port data i/o p4.0 sclk serial port clock i/o with smith trigg er in input path interrupt enable (initial=00h) bit: 7 6 5 4 3 2 1 0 ea es1 - - et1 ex1 et0 ex0 mnemonic: ie address: a8h ea: global enable. enable/disable all interrupts. es1: enable serial port interrupt et1: enable timer 1 interrupt ex1: enable external interrupt 1 et0: enable timer 0 interrupt ex0: enable external interrupt 0 p4 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p4.7io p4.6io p4.5io p4.4io p4.3io p4.2io p4.1io p4.0io mnemonic: p4io address: aeh p4io: p4 pins i/o control. 1: input mode 0: output mode port 3 (initial=ffh, input mode) bit: 7 6 5 4 3 2 1 0 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 mnemonic: p3 address: b0h p3.7 - 0: p3 can be selected as input or output mode by the p3io register, at initial reset, p3io is set to 0ffh, p3 is used as input mode. when p3io is set to 00h, the p3 is used as cmos output mode. special function of p3 is described below. p3.5 t1 timer/counter 1 external count input p3.4 t0 timer/counter 0 external count in put p3.3 int 1 external interrupt 1 p3.2 int 0 external interrupt 0 cid register (initial=00h, read only ) bit: 7 6 5 4 3 2 1 0 - fclk fdata fcd dtmfd fdr algo rng mnemonic: cidr address: b1h this sfr indicates t he cid signal immediately. register data is set or cleared by hardware only. fclk: fsk serial clock with the baud rate of 1200hz. fdata: fsk serial bit data. fcd: set when fsk carrier is detected. cleared when fsk carrier is disappeared. dtmfd: set when dt mf decoded data is ready. cleared when dtmf signal ends. fdr: set when fsk 8 bits data is ready. cleared before next fsk start bit comes
p reliminary w925e/c240 8 - bit cid microcontroller - 22 - release da te : 2002 / 5 / 13 revision : a 3 algo: dual tone alert signal guard time detect signal. set when a guard time qualified dual tone alert signal has been detected. cleared when the guard time qualified dual tone alert signal is absent. rng: ring detection bit. high to indicate the detection of line reversal and/or ringing. cid flag generator (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - fsf dtmfdf fdrf alg of rngf mnemonic: cidfg address: b2h fsf: set when fsk latch clock low to high. cleared by software dtmfdf: set when dtmfd low to high. cleared by software fdrf: set when fdr low to high. cleared by software. algof: set when algo low to high. cleared by software. rngf: set when rng low to high. cleared by software. cid power control register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - cide - fske case dtmfe mnemonic: cidpcr address: b3h cide: global enable cid function. low to disable all functi ons of cid parts. fske: enable fsk demodulation circuit. case: enable dual tone alert signal detection circuit. dtmfe: enable dtmf demodulation circuit. fsk data register (initial=xxh) bit: 7 6 5 4 3 2 1 0 fd7 fd6 fd5 fd4 fd3 fd2 fd1 fd0 mnemonic: fskdr address: b4h fd7 - 0: 8 bits fsk demodulated data. dtmf data register (initial=xxh) bit: 7 6 5 4 3 2 1 0 cash casl dtmfh dtmfl dd3 dd2 dd1 dd0 mnemonic: dtmfdr address: b5h cash: set when dual tone alert signal high tone is detected. ca sl: set when dual tone alert signal low tone is detected. dtmfh: set when dtmf high tone is detected. dtmfl: set when dtmf low tone is detected. dd3 - 0: 4 bits dtmf demodulated data. dtmf present time register (initial=19h) bit: 7 6 5 4 3 2 1 0 dpt7 d pt6 dpt5 dpt4 dpt3 dpt2 dpt1 dpt0 mnemonic: dtmfpt address: b6h the clock period of guard - time timer is 0.8582ms. the default dtmf present time is 21.45ms.
p reliminary w925e/c240 8 - bit cid microcontroller - 23 - release da te : 2002 / 5 / 13 revision : a 3 dpt7 - 0: the pre - set data register for counting dtmf present time. when dtmf is detected(est low to high), the guard timer starts to up - count from 00h. as the guard timer is equal to the value of dtmfpt, the exist of the dtmf is accepted. est changes to low state to stop and reset the counter. dtmf absent time register (initial=19h) bit: 7 6 5 4 3 2 1 0 dat7 dat6 dat5 dat4 dat3 dat2 dat1 dat0 mnemonic: dtmfat address: b7h the clock period of guard - time timer is 0.8582ms. the default dtmf absent time is 21.45ms. dat7 - 0: the pre - set data register for counting dtmf absent time. when dtmf is ab sent(est high to low), the guard timer starts to up - count from 00h. as the guard timer is equal to the value of dtmfat, the finish of dtmf is recognized. est changes to low state to stop and reset the counter. interrupt priority (initial=00h) bit: 7 6 5 4 3 2 1 0 - ps1 - - pt1 px1 pt0 px0 mnemonic: ip address: b8h ip.7: this bit is un - implemented and will read high. ps1: this bit defines the serial port interrupt priority. ps1 = 1 sets it to higher priority level pt1: this bit defines the tim er 1 interrupt priority. pt1 = 1 sets it to higher priority level. px1: this bit defines the external interrupt 1 priority. px1 = 1 sets it to higher priority level. pt0: this bit defines the timer 0 interrupt priority. pt0 = 1 sets it to higher priority l evel. px0: this bit defines the external interrupt 0 priority. px0 = 1 sets it to higher priority level. dtmf generator register (initial=00h) bit: 7 6 5 4 3 2 1 0 - dtge he le l1 l0 h1 h0 mnemonic: dtmfg address: bah l1 l0 h1 h0 selected tone x x 0 0 1209hz x x 0 1 1336hz x x 1 0 1477hz x x 1 1 1633hz 0 0 x x 697hz 0 1 x x 770hz 1 0 x x 852hz 1 1 x x 941hz le: enable low group frequency output. he: enable high group frequency output. dtge: enable dual tone output to dtmf pin.
p reliminary w925e/c240 8 - bit cid microcontroller - 24 - release da te : 2002 / 5 / 13 revision : a 3 compara tor register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - resc ref - compen mnemonic: compr address: bbh resc: result of the comparator. set when positive analog input voltage is(vpos or 1.0v internal regular output) higher than negative analog input voltage(vneg) resc is a read only bit. ref: ref=0 reference input from analog input voltage(vpos /p4.4 ) pin. ref=1 reference input from the internal regulator output. compen: compen=0 disable comparator compen=1 enable compar ator idle released condition register 1 (initial=00h) bit: 7 6 5 4 3 2 1 0 - ircs1 - - irct1 ircx1 irct0 ircx0 mnemonic: irc1 address: bch one of the bit of irc1 and irc2 will be set by hardware to record the idle released condition when the id le mode is released. irc1 and irc2 can be set by hardware and can be r/w by software. ircs1: idle mode released by serial port interrupt flag. irct1: idle mode released by timer 1 interrupt flag. ircx1: idle mode released by external interrupt 1 flag. irct 0: idle mode released by timer 0 interrupt flag. ircx0: idle mode released by external interrupt 0 flag. idle released condition register 2 (initial=00h) bit: 7 6 5 4 3 2 1 0 - - ircwdi irccomp ircdiv irccid ircx3 ircx2 mnemonic: irc2 address: bdh one of the bit of irc1 and irc2 will be set by hardware to record the idle released condition when the idle mode is released. irc1 and irc2 can be set by hardware and can be r/w by software. ircwdi: idle mode released by watchdog timer interrupt flag. irccomp: idle mode released by comparator interrupt flag. ircdiv: idle mode released by divider interrupt flag. irccid: idle mode released by cid interrupt flag. ircx3: idle mode released by external interrupt 3 flag. ircx2: idle mode released by external interrupt 2 flag. cas tone present time register (initial=0fh) bit: 7 6 5 4 3 2 1 0 caspt7 caspt6 caspt5 caspt4 caspt3 caspt2 caspt1 caspt0 mnemonic: caspt address: beh the clock period of guard - time timer is 0.8582ms. the default alert tone pre sent time is 12.87ms. c aspt7 - 0: the pre - set data register for counting cas tone present time. when cas tone is detected (algr low to high), the guard timer starts to up - count from 00h. as the
p reliminary w925e/c240 8 - bit cid microcontroller - 25 - release da te : 2002 / 5 / 13 revision : a 3 guard timer is equal to the value of caspt, the exist of the cas tone is accepted. algr changes to low state to stop and reset the counter. cas tone absent time register (initial=0fh) bit: 7 6 5 4 3 2 1 0 casat7 casat6 casat5 casat4 casat3 casat2 casat1 casat0 mnemonic: casat address: bfh the clock period of guard - time timer is 0.8582ms. the default alert tone absent time is 12.87ms. c asat7 - 0: the pre - set data register for counting cas tone absent time. when cas tone is absent (algr high to low), the guard timer starts to up - count from 00h. as the guard timer is equal to the value of casat, the finish of cas tone is recognized. algr changes to high state to stop and reset the counter. serial port control (initial=00h) bit: 7 6 5 4 3 2 1 0 sf1 - regon ren1 sfq sedg clkio sio mnemonic: scon1 address: c0h sf1: serial port interrupt flag. when 8 - bits data is transceived completely, sf1 is set by hardware. sf1 is cleared when serial interrupt routine is executed or cleared by software. regon: regulator on/off control. 0 to disable regulator, 1 to regulat or. ren1: set ren1 from 0 to 1 to start the serial port to receive 8 - bit serial data. sfq: sfq=0 serial clock output frequency is equal to f osc /2 sfq=1 serial clock output frequency is equal to f osc /256 sedg: sedg=0 serial data latched at falling edge of clock, sclk=low initially. sedg=1 serial data latched at rising edge of clock, sclk=high initially. clkio: clkio=0 p4.0(sclk) work as output mode clkio=1 p4.0(sclk) work as input mode sio: sio=0 p4.0 & p4.1 work as normal i/o pin sio=1 p4 .0 & p4.1 work as serial port1 function serial data buffer (initial=00h) read only bit: 7 6 5 4 3 2 1 0 sbuf1.7 sbuf1.6 sbuf1.5 sbuf1.4 sbuf1.3 sbuf1.2 sbuf1.1 sbuf1.0 mnemonic: sbuf1 address: c1h sbuf1.7 - 0: serial data on the serial port 1 i s read from or written to this location. it actually consists of two separate internal 8 - bit registers. one is the receive register, and the other is the transmit buffer. any read access gets data from the receive data buffer, while write access is to the transmit data buffer. regulator voltage control register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - regvc.3 regvc.2 regvc.1 regvc.0 mnemonic: regvc address: c2h regvc.3 - 0: 4 bits to tune the regulator output voltage. power management register (initial=xxx00001b)
p reliminary w925e/c240 8 - bit cid microcontroller - 26 - release da te : 2002 / 5 / 13 revision : a 3 bit: 7 6 5 4 3 2 1 0 xt/ rg rgmd rgsl x2off x1off - - - mnemonic: pmr address: c4h xt/ rg :crystal/rc oscillator select. setting this bit selects crystal or external clock as system clock source. clearing this bit selects the on - chip rc oscillator as clock source. x1up (status.4) must be set to 1 and x1off (pmr.3) must be cleared before this bit can be set. attempts to set this bit without obeying these conditions will be ignored. this bit is set t o 1 after a power - on reset and unchanged by other forms of reset. rgmd: rc mode status. this bit indicates the current clock source of micro - controller. when cleared, cpu is operating from the external crystal or oscillator. when set, cpu is operating from the on - chip rc oscillator. this bit is cleared to 0 after a power - on reset and unchanged by other forms of reset. rgsl: rc oscillator select. this bit selects the clock source following a resume from power down mode. setting this bit allows device operat ing from rc oscillator when a resume from power down mode. when this bit is cleared, the device will hold operation until the crystal oscillator has warmed - up following a resume from power down mode. this bit is cleared to 0 after a power - on reset and unch anged by other forms of reset. x2off: set to disable sub - oscillator (32khz oscillator) x1off: crystal oscillator disable. setting this bit disables the external crystal oscillator. this bit can only be set to 1 while the micro - controller is operating from the rc oscillator. clearing this bit restarts the crystal oscillator, the x1up (status.4) bit will be set after crystal oscillator warmed - up has completed. status register (initial=00h) bit: 7 6 5 4 3 2 1 0 x2up hip lip x1up - - - - mnemonic: stat us address: c5h x2up:sub - crystal oscillator warm - up status. when set, this bit indicates the crystal oscillator has completed the warm - up delay. when x2off bit is set, hardware will clear this bit. there are two options which is selected by option code for warm - up delay, one is 1024 clocks warm - up delay, other is 65536 clocks warm - up delay. hip: high priority interrupt status. when set, it indicates that software is servicing a high priority interrupt. this bit will be cleared when the program executes the corresponding reti instruction. lip: low priority interrupt status. when set, it indicates that software is servicing a low priority interrupt. this bit will be cleared when the program executes the corresponding reti instruction. x1up:crystal oscillat or warm - up status. when set, this bit indicates the crystal oscillator has completed the 65536 clocks warm - up delay. each time the crystal oscillator is restarted by exit from power down mode or the x1off bit is set, hardware will clear this bit. this bit is set to 1 after a power - on reset. when this bit is cleared, it prevents software from setting the xt/ rg bit to enable cpu operation from crystal oscillator. there are two options which is selected by option code for warm - up delay, one i s 4096 clocks warm - up delay, other is 65536 clocks warm - up delay. fsk transimt control register (initial=00h) bit: 7 6 5 4 3 2 1 0 fte ftm fds - - - lo1 lo0
p reliminary w925e/c240 8 - bit cid microcontroller - 27 - release da te : 2002 / 5 / 13 revision : a 3 mnemonic: fsktc address: c6h fte: fsk transmit enable ; enable:1 , disable=0 ftm: fsk sign al standard ; bellcore:1 , v.23=0 fds: fsk data sending status lo0, lo1: fsk transmit level option fsk output level lo1 lo0 150mv 0 0 120mv 0 1 95mv 1 0 75mv 1 1 fsk transmit data buffer (initial=00h) bit: 7 6 5 4 3 2 1 0 fsktb.7 fsktb.6 fsktb.5 fsktb.4 fsktb.3 fsktb.2 fsktb.1 fsktb.0 mnemonic: fsktb address: c7h fsktb.0:only this bit will be latched and send out as fsk signal divider control (initial=01h) bit: 7 6 5 4 3 2 1 0 - - - - - - - diva mnemonic: divc address: c8h diva: divider available control bit. this bit is set or cleared by software to enable/disable divider. diva=1 to enable the divider. diva=0 to disable the divider. diva is reset after reset. program status word (initial=00h) bit: 7 6 5 4 3 2 1 0 cy ac f0 rs1 rs0 ov f1 p mnemonic: psw address: d0h cy: carry flag. set for an arithmetic operation which results in a carry being generated from the alu. it is also used as the accumulator for the bit operations . ac: auxiliary carry. set when the previous operation resulted in a carry from the high order nibble. f0: user flag 0. general purpose flag that can be set or cleared by the user. rs.1 - 0: register bank select bits: rs1 rs0 register bank address 0 0 0 00 - 07h 0 1 1 08 - 0fh 1 0 2 10 - 17h 1 1 3 18 - 1fh ov: overflow flag. set when a carry was generated from the seventh bit but not from the 8th bit as a result of the previous operation, or vice - versa. f1: user flag 1. general purpose flag that can be set or cl eared by the user by software. p: parity flag. set/cleared by hardware to indicate odd/even number of 1's in the accumulator.
p reliminary w925e/c240 8 - bit cid microcontroller - 28 - release da te : 2002 / 5 / 13 revision : a 3 watchdog control (initial: note) bit: 7 6 5 4 3 2 1 0 - por - wfs wdif wtrf ewt rwt mnemonic: wdcon address: d8h por: power - on reset flag. hardware will set this flag when system is powered on and this flag is cleared only by software. wfs: watchdog timer frequency select. set to select f s as wdt clock input. clear to select f osc as wdt clock input. wdif: watchdog timer interrupt flag. this bit is set whenever the time - out occurs in the watchdog timer. if the watchdog interrupt is enabled (eie.5), then an interrupt will occur (if the global interrupt enable is set and other interrupt requirements are met). software or an y reset can clear this bit. wtrf: watchdog timer reset flag. hardware will set this bit when the watchdog timer causes a reset. software can read it but must clear it manually. a power - fail reset will also clear the bit. this bit helps software in determin ing the cause of a reset. if ewt = 0, the watchdog timer will have no effect on this bit. ewt: enable watchdog timer reset. setting this bit will enable the watchdog timer reset function. rwt: reset watchdog timer. this bit helps in putting the watchdog t imer into a known state. it also helps in resetting the watchdog timer before a time - out occurs. failing to set the ewt before time - out will cause an interrupt, if ewdi (eie.4) is set, and 512 clocks after that a watchdog timer reset will be generated if e wt is set. this bit is self - clearing by hardware. note: the wdcon sfr is set to a 0x000xx0b on an external reset. wtrf is set to a 1 on a watchdog timer reset, but to a 0 on power on/down resets. wtrf is not altered by an external reset. por is set to 1 b y a power - on reset. ewt is set to 0 on a power - on reset and unaffected by other resets. accumulator (initial=00h) bit: 7 6 5 4 3 2 1 0 acc.7 acc.6 acc.5 acc.4 acc.3 acc.2 acc.1 acc.0 mnemonic: acc address: e0h acc.7 - 0:the acc register. extende d interrupt enable (initial=00h) bit: 7 6 5 4 3 2 1 0 - - ewdi ecomp ediv ecid ex3 ex2 mnemonic: eie address: e8h eie.7 - 6:reserved bits. ewdi: enable watchdog timer interrupt. ecomp: enable comparator interrupt. ediv: enable divider interrupt . ecid: enable cid interrupt. ex3: external interrupt 3 enable. ex2: external interrupt 2 enable.
p reliminary w925e/c240 8 - bit cid microcontroller - 29 - release da te : 2002 / 5 / 13 revision : a 3 b register (initial=00h) bit: 7 6 5 4 3 2 1 0 b.7 b.6 b.5 b.4 b.3 b.2 b.1 b.0 mnemonic: b address: f0h b.7 - 0:the b register serves as a second accumulator. extended interrupt priority (initial=00h) bit: 7 6 5 4 3 2 1 0 - - pwdi pcomp pdiv pcid px3 px2 mnemonic: eip address: f8h pwdi: watchdog timer interrupt priority. 0 = low priority, 1 = high priority. pcomp: comparator interrupt p riority. 0 = low priority, 1 = high priority. pdiv: divider interrupt priority. 0 = low priority, 1 = high priority. pcid: cid interrupt priority. 0 = low priority, 1 = high priority. px3: external interrupt 3 priority. 0 = low priority, 1 = high priority. px2: external interrupt 2 priority. 0 = low priority, 1 = high priority. cid gain control data (initial=00h) bit: 7 6 5 4 3 2 1 0 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 mnemonic: cidgd address: f9h cidgd.7 - 0: the data value of programmable ci d input filter gain and hysteresis. cid gain control address (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - bit3 bit2 bit1 bit0 mnemonic: cidga address: fah cidga.3: the cidgd latch control signal. rising high pulse to latch cidgd into cid gain cont rol register. cidga.2 - 0: the address to indicate cid input gain control registers.
p reliminary w925e/c240 8 - bit cid microcontroller - 30 - release da te : 2002 / 5 / 13 revision : a 3 6.3 instruction the w925e/c240 executes all the instructions of the standard 8032 family. however, timing of these instructions is different. in the w925e/c240, each machine cy cle consists of 4 clock periods, while in the standard 8032 it consists of 12 clock periods. also, in the w925e/c240 there is only one fetch per machine cycle i.e. 4 clocks per fetch, while in the standard 8032 there can be two fetches per machine cycle, w hich works out to 6 clocks per fetch. table 2 instructions that affect flag settings instruction carry overflow auxiliary carry instruction carry overflow auxiliary carry inc,dec - - - setb c 1 add x x x clr c 0 addc x x x cp l c x subb x x x anl c, bit x mul 0 x anl c, bit x div 0 x orl c, bit x da a x orl c, bit x rrc a x mov c, bit x rlc a x cjne x a "x" indicates that the modification is as per the result of instruction. a " - " indicates that the flag is not effected by the instruction. table 3 instruction timing for w925e/c240 instruction hex op - code bytes machine cycles instruction hex op - code bytes machine cycles nop 00 1 1 anl a, r0 58 1 1 add a, r0 28 1 1 anl a, r1 59 1 1 add a, r1 29 1 1 anl a, r2 5a 1 1 add a, r2 2a 1 1 anl a, r3 5b 1 1 add a, r3 2b 1 1 anl a, r4 5c 1 1 add a, r4 2c 1 1 anl a, r5 5d 1 1 add a, r5 2d 1 1 anl a, r6 5e 1 1 add a, r6 2e 1 1 anl a, r7 5f 1 1 add a, r7 2f 1 1 anl a, @r0 56 1 1 a dd a, @r0 26 1 1 anl a, @r1 57 1 1 add a, @r1 27 1 1 anl a, direct 55 2 2 add a, direct 25 2 2 anl a, #data 54 2 2 add a, #data 24 2 2 anl direct, a 52 2 2 addc a, r0 38 1 1 anl direct, #data 53 3 3 addc a, r1 39 1 1 anl c, bit 82 2 2 addc a, r2 3a 1 1 anl c, /bit b0 2 2 addc a, r3 3b 1 1 cjne a, direct, rel b5 3 4 addc a, r4 3c 1 1 cjne a, #data, rel b4 3 4 addc a, r5 3d 1 1 cjne @r0, #data, rel b6 3 4 addc a, r6 3e 1 1 cjne @r1, #data, rel b7 3 4 addc a, r7 3f 1 1 cjne r0, #data, rel b8 3 4 ad dc a, @r0 36 1 1 cjne r1, #data, rel b9 3 4 addc a, @r1 37 1 1 cjne r2, #data, rel ba 3 4 addc a, direct 35 2 2 cjne r3, #data, rel bb 3 4 addc a, #data 34 2 2 cjne r4, #data, rel bc 3 4 acall addr11 71,91,b1, 11,31,51, d1,f1 2 3 cjne r5, #data, rel bd 3 4 ajmp addr11 01,21,41, 61,81,a1, c1,e1 2 3 cjne r6, #data, rel be 3 4
p reliminary w925e/c240 8 - bit cid microcontroller - 31 - release da te : 2002 / 5 / 13 revision : a 3 table 3. instruction timing for w925e/c240, continued instruction hex op - code bytes machine cycles instruction hex op - code bytes machine cycles cjne r7, #data, rel bf 3 4 jc re l 40 2 3 clr a e4 1 1 jnc rel 50 2 3 cpl a f4 1 1 jb bit, rel 20 3 4 clr c c3 1 1 jnb bit, rel 30 3 4 clr bit c2 2 2 jbc bit, rel 10 3 4 cpl c b3 1 1 lcall addr16 12 3 4 cpl bit b2 2 2 ljmp addr16 02 3 4 dec a 14 1 1 mul ab a4 1 5 dec r0 18 1 1 mov a, r0 e8 1 1 dec r1 19 1 1 mov a, r1 e9 1 1 dec r2 1a 1 1 mov a, r2 ea 1 1 dec r3 1b 1 1 mov a, r3 eb 1 1 dec r4 1c 1 1 mov a, r4 ec 1 1 dec r5 1d 1 1 mov a, r5 ed 1 1 dec r6 1e 1 1 mov a, r6 ee 1 1 dec r7 1f 1 1 mov a, r7 ef 1 1 dec @r0 16 1 1 mo v a, @r0 e6 1 1 dec @r1 17 1 1 mov a, @r1 e7 1 1 dec direct 15 2 2 mov a, direct e5 2 2 dec dptr a5 1 2 mov a, #data 74 2 2 div ab 84 1 5 mov r0, a f8 1 1 da a d4 1 1 mov r1, a f9 1 1 djnz r0, rel d8 2 3 mov r2, a fa 1 1 djnz r1, rel d9 2 3 mov r3, a fb 1 1 djnz r5, rel dd 2 3 mov r4, a fc 1 1 djnz r2, rel da 2 3 mov r5, a fd 1 1 djnz r3, rel db 2 3 mov r6, a fe 1 1 djnz r4, rel dc 2 3 mov r7, a ff 1 1 djnz r6, rel de 2 3 mov r0, direct a8 2 2 djnz r7, rel df 2 3 mov r1, direct a9 2 2 djnz di rect, rel d5 3 4 mov r2, direct aa 2 2 inc a 04 1 1 mov r3, direct ab 2 2 inc r0 08 1 1 mov r4, direct ac 2 2 inc r1 09 1 1 mov r5, direct ad 2 2 inc r2 0a 1 1 mov r6, direct ae 2 2 inc r3 0b 1 1 mov r7, direct af 2 2 inc r4 0c 1 1 mov r0, #data 78 2 2 inc r5 0d 1 1 mov r1, #data 79 2 2 inc r6 0e 1 1 mov r2, #data 7a 2 2 inc r7 0f 1 1 mov r3, #data 7b 2 2 inc @r0 06 1 1 mov r4, #data 7c 2 2 inc @r1 07 1 1 mov r5, #data 7d 2 2 inc direct 05 2 2 mov r6, #data 7e 2 2 inc dptr a3 1 2 mov r7, #data 7f 2 2 jmp @a+dptr 73 1 2 mov @r0, a f6 1 1 jz rel 60 2 3 mov @r1, a f7 1 1 jnz rel 70 2 3 mov @r0, direct a6 2 2
p reliminary w925e/c240 8 - bit cid microcontroller - 32 - release da te : 2002 / 5 / 13 revision : a 3 table 3. instruction timing for w925e/c240, continued instruction hex op - code bytes machine cycles instruction hex op - code bytes machi ne cycles mov @r1, direct a7 2 2 rl a 23 1 1 mov @r0, #data 76 2 2 rlc a 33 1 1 mov @r1, #data 77 2 2 rr a 03 1 1 mov direct, a f5 2 2 rrc a 13 1 1 mov direct, r0 88 2 2 setb c d3 1 1 mov direct, r1 89 2 2 setb bit d2 2 2 mov direct, r2 8a 2 2 swap a c4 1 1 mov direct, r3 8b 2 2 sjmp rel 80 2 3 mov direct, r4 8c 2 2 subb a, r0 98 1 1 mov direct, r5 8d 2 2 subb a, r1 99 1 1 mov direct, r6 8e 2 2 subb a, r2 9a 1 1 mov direct, r7 8f 2 2 subb a, r3 9b 1 1 mov direct, @r0 86 2 2 subb a, r4 9c 1 1 m ov direct, @r1 87 2 2 subb a, r5 9d 1 1 mov direct, direct 85 3 3 subb a, r6 9e 1 1 mov direct, #data 75 3 3 subb a, r7 9f 1 1 mov dptr, #data 16 90 3 3 subb a, @r0 96 1 1 movc a, @a+dptr 93 1 2 subb a, @r1 97 1 1 movc a, @a+pc 83 1 2 subb a, direct 9 5 2 2 movx a, @r0 e2 1 2 - 9 subb a, #data 94 2 2 movx a, @r1 e3 1 2 - 9 xch a, r0 c8 1 1 movx a, @dptr e0 1 2 - 9 xch a, r1 c9 1 1 movx @r0, a f2 1 2 - 9 xch a, r2 ca 1 1 movx @r1, a f3 1 2 - 9 xch a, r3 cb 1 1 movx @dptr, a f0 1 2 - 9 xch a, r4 cc 1 1 mov c, bit a2 2 2 xch a, r5 cd 1 1 mov bit, c 92 2 2 xch a, r6 ce 1 1 orl a, r0 48 1 1 xch a, r7 cf 1 1 orl a, r1 49 1 1 xch a, @r0 c6 1 1 orl a, r2 4a 1 1 xch a, @r1 c7 1 1 orl a, r3 4b 1 1 xchd a, @r0 d6 1 1 orl a, r4 4c 1 1 xchd a, @r1 d7 1 1 orl a, r5 4d 1 1 xch a, direct c5 2 2 orl a, r6 4e 1 1 xrl a, r0 68 1 1 orl a, r7 4f 1 1 xrl a, r1 69 1 1 orl a, @r0 46 1 1 xrl a, r2 6a 1 1 orl a, @r1 47 1 1 xrl a, r3 6b 1 1 orl a, direct 45 2 2 xrl a, r4 6c 1 1 orl a, #data 44 2 2 xrl a, r5 6d 1 1 orl direct, a 42 2 2 xrl a, r6 6e 1 1 orl direct, #data 43 3 3 xrl a, r7 6f 1 1 orl c, bit 72 2 2 xrl a, @r0 66 1 1 orl c, /bit a0 2 2 xrl a, @r1 67 1 1 push direct c0 2 2 xrl a, direct 65 2 2 pop direct d0 2 2 xrl a, #data 64 2 2 ret 22 1 2 xrl direct, a 62 2 2 reti 32 1 2 xrl direct, #data 63 3 3
p reliminary w925e/c240 8 - bit cid microcontroller - 33 - release da te : 2002 / 5 / 13 revision : a 3 6.4 power management the w925e/c240 has 3 operation mode, normal mode, idle mode and power down mode to manage the power consumption. normal mode normal mode is used in the normal operation status. all functions can be worked in the normal mode. idle mode the user can put the device into idle mode by writing 1 to the bit pcon.0. the instruction that sets the idle bit is the last instruction that will be executed before the device goes into idle mode. in the idle mode, the clock to the cpu is halted, but not to the interrupt, timer, watchdog timer, divider, comparator and cid blocks. this forces the cpu state to be frozen; the program counter, the stack pointer, the program status word, the accumulator and the other registers hold their contents. the port pins hold the logical states they had at the time idle was activated. the idle mode can be terminated in two ways. since the interrupt controller is still active, the activation of any enabled interrupt ca n wake up the processor. this will automatically terminate the idle mode and clear the idle bit. and if bit idlt(pcon.4) is cleared the interrupt service routine(isr) will be executed, else the idle mode is released directly without any execution of isr. a fter the isr, execution of the program will continue from the instruction, which put the device into idle mode. the idle mode can also be exited by activating the reset. the device can be put into reset either by applying a low on the external reset pin or a power on/fail reset condition or a watchdog timer reset. the external reset pin has to be held low for at least two machine cycles i.e. 8 clock periods to be recognized as a valid reset. in the reset condition the program counter is reset to 0000h and a ll the sfrs are set to the reset condition. since the clock is still running in the period of external reset therefore the instruction is executed immediately. in the idle mode, the watchdog timer continues to run, and if enabled, a time - out will cause a w atchdog timer interrupt which will wake up the device. the software must reset the watchdog timer in order to preempt the reset which will occur after 512 clock periods of the time - out. power down mode the device can be put into power down mode by writing 1 to bit pcon.1. the instruction that does this will be the last instruction to be executed before the device goes into power down mode. in the power down mode, all the clocks are stopped and the device comes to a halt. all activity is completely stopped a nd the power consumption is reduced to the lowest possible value. the port pins output the values held by their respective sfrs. the w925e/c240 will exit the power down mode by reset or external interrupts or ring detected. an external reset can be used to exit the power down state. the low on reset pin terminates the power down mode, and restarts the clock. the on - chip hardware will now provide a delay of 65536 clock, which is used to provide time for the oscillator to restart and stabilize. once this dela y is complete, an internal reset is activated and the program execution will restart from 0000h. in the power down mode, the clock is stopped, so the watchdog timer cannot be used to provide the reset to exit power down mode. the w925e/c240 can be woken fr om the power down mode by forcing an external interrupt pin activated and ring detected, provided the corresponding interrupt is enabled , while the global enable(ea) bit is set. while the power down is released, the device will experience a warm - up delay o f 65536 clock cycles to ensure the stabilization of oscillation. then device executes the interrupt service routine for the corresponding external interrupt or cid interrupt. after the interrupt service routine is completed, the program returns to the inst ruction after the one, which put the device into power down mode and continues from there. when rgsl(pmr.5) bit is set to 1, the cpu will use the internal rc oscillator instead of crystal to exit power down mode. the micro - controller will automatically swi tch from rc oscillator to crystal after a warm - up delay of 65536 crystal clocks. the rc oscillator runs at approximately 2 - 4 mhz. using rc oscillator to
p reliminary w925e/c240 8 - bit cid microcontroller - 34 - release da te : 2002 / 5 / 13 revision : a 3 exit from power down mode saves the time for waiting crystal start - up. it is useful in the low power sy stem which usually be awakened from a short operation then returns to power down mode. 6.5 reset the user has several hardware related options for placing the w925e/c240 into reset condition. in general, most register bits go to their reset value irrespective of the reset condition, but there are few flags that initial states are dependant on the source of reset. user can recognize the cause of reset by reading the flags. there are three ways of putting the device into reset state. they are external reset, powe r on reset and watchdog reset. external reset the device continuously samples the reset pin at state c4 of every machine cycle. therefore, the reset pin must be held for at least 2 machine cycles to ensure detection of a valid reset low. the reset circuitr y then synchronously applies the internal reset signal. thus, the reset is a synchronous operation and requires the clock to be running to cause an external reset. once the device is in reset condition, it will remain so as long as reset is 0. even after r eset is deactivated, the device will continue to be in reset state for up to two machine cycles, and then begin program execution from 0000h. there is no flag associated with the external reset condition. however, since some flags indicate the cause of oth er two reset, the external reset can be considered as the default reset if those two flags are cleared. watchdog timer reset the watchdog timer is a free running timer with programmable time - out intervals. the user can reset the watchdog timer at any time to avoid producing the flag wdif. if the watchdog reset is enabled and the flag wdif is set high, the watchdog timer reset is performed after the additional 512 clocks come. this places the device into the reset condition. the reset condition is maintained by hardware for two machine cycles. once the reset is removed the device will begin execution from 0000h. 6.6 interrupt the w925e/c240 has a two priority levels interrupt structure with 11 interrupt sources. each of the interrupt sources has an individual pri ority bit, flag, interrupt vector and enable bit. in addition, the interrupts can be globally enabled or disabled. interrupt sources the external interrupts int 0 and int 1 can be either edge triggered or level triggered, dep ending on bits it0 and it1. the bits ie0 and ie1 in the tcon register are the flags which are checked to generate the interrupt. in the edge triggered mode of the int 0 and the int 1 inputs are sampled in every machine cycle. if the sample is high in one cycle and low in the next, then a high to low transition is detected and the interrupts request flag iex in tcon is set. the flag bit requests the interrupt. since the external interrupts are sampled every machine cycle, they h ave to be held high or low for at least one complete machine cycle. the iex flag is automatically cleared when the service routine is called. if the level triggered mode is selected, then the requesting source has to hold the pin low until the interrupt is serviced. the iex flag will not be cleared by the hardware on entering the service routine. if the interrupt continues to be held low even after the service routine is completed, then the processor may acknowledge another interrupt request from the same s ource. note that the external interrupts int2 to int3 are edge triggered only. the tf0, tf1 flags generate the timer 0, 1 interrupts. these flags are set by the overflow in the timer 0, timer 1. the tf0 and tf1 flags are automatically cleared by the hardwa re when the timer interrupt is serviced.
p reliminary w925e/c240 8 - bit cid microcontroller - 35 - release da te : 2002 / 5 / 13 revision : a 3 the watchdog timer can be used as a system monitor or a simple timer. in either case, when the time - out count is reached, the watchdog timer interrupt flag wdif (wdcon.3) is set. if the enable bit eie.5 enables the interrupt, then an interrupt will occur. the serial block can generate interrupts on reception or transmission. there are o ne interrupt sources from the serial block, which are obtained by sf1 in the scon1. sf1 is cleared automatically when the serial por t interrupt is serviced. the divider interrupt is generated by divf that is set when divider overflows. divf is set by hardware and cleared when divider interrupt is serviced. the divider interrupt is enable/disable if the bit ediv is high/low. the compara tor interrupt is produced by compf, which is set when the resc bit is changed from low to high. resc, which is the real - time result of comparator, is set when the voltage of reference input is higher than the voltage of analog input. the cid interrupt is g enerated by cidf. the cidf is a logic or output of all cid flags which are set by hardware and cleared by software. the structure of the cid flags is shown in figure 6 - 4 . each of the individual interrupts can be en abled or disabled by setting or clearing the corresponding bits in the ie and eie sfr. a bit ea, which is located in ie.7, is a global control bit to enable/disable the all interrupt. when bit ea is zero all interrupts are disable and when bit ea is high e ach interrupt is enable individually by the corresponding bit. rngf fdrf algof dtmfdf cidf r system clock clear by software d fsf figure 6 - 4 the structure of cid flags priority level structure there are two priority levels for the interrupts, hi gh and low. the interrupt sources can be individually set to either high or low levels. naturally, a higher priority interrupt cannot be interrupted by a lower priority interrupt. however there exists a pre - defined hierarchy amongst the interrupts themselv es. this hierarchy comes into play when the interrupt controller has to resolve simultaneous requests having the same priority level. this hierarchy is defined as shown below; the interrupts are numbered starting from the highest priority to the lowest. t able 4 interrupt table. interrupt flag name flag location en bit en bit location priority flag cleared by interrupt vector external interrupt 0 ie0 tcon.1 ex0 ie.0 1 (higest) hardware + software 03h timer0 overflow tf0 tcon.5 et0 ie.1 2 hardware + software 0bh external interrupt 1 ie1 tcon.3 ex1 ie.2 3 hardware + software 13h timer1 overflow tf1 tcon.7 et1 ie.3 4 hardware + software 1bh serial port sf1 scon1.7 es1 ie.6 5 hardware + software 3bh external interrupt 2 ie2 exif.0 e x2 eie.0 6 hardware + software 43h
p reliminary w925e/c240 8 - bit cid microcontroller - 36 - release da te : 2002 / 5 / 13 revision : a 3 external interrupt 3 ie3 exif.1 ex3 eie.1 7 hardware + software 4bh cid cidf exif.2 ecid eie.2 8 software 53h divider overflow divf exif.3 ediv eie.3 9 hardware + software 5bh compare difference compf exi f.4 ecomp eie.4 10 hardware + software 63h watchdog timer wdif wdcon.3 ewdi eie.5 11 (lowest) software 6bh ps: the flags marked as the italic font are not bit - addressable. the interrupt flags are sampled every machine cycle. in the same machine cycle, the sampled interrupts are polled and their priority is resolved. if certain conditions are met then the hardware will execute an internally generated lcall instruction which will vector the process to the appropriate interrupt vector address. the conditions for generating the lcall are 1. an interrupt of equal or higher priority is not currently being serviced. 2. the current polling cycle is the last machine cycle of the instruction currently being executed. 3. the current instruction does not inv olve a write to ip, ie, eip or eie registers and is not a reti. if any of these conditions is not met, then the lcall will not be generated. the polling cycle is repeated every machine cycle, with the interrupts being sampled in the same machine cycle. if an interrupt flag is active in one cycle but not responded to, and is not active when the above conditions are met, the denied interrupt will not be serviced. this means that active interrupts are not remembered. note that every polling cycle is new. execu tion continues from the vectored address until an reti instruction is executed. on execution of the reti instruction, the processor pops out the top content of stack to the pc. the processor is not notified anything if the content of stack was changed. not e that a ret instruction would perform exactly the same process as a reti instruction, but it would not inform the interrupt controller that the interrupt service routine is completed, and would leave the controller still thinking that the service routine is underway. 6.7 programmable timers/counters the w925e/c240 has 2 16 - bit timer/counters. there are two 8 - bit registers to perform a 16 - bit counting register in every timer/counter. in timer/counter 0, th0 is the upper 8 bits register and tl0 is the lower 8 bi ts register. similarly timer/counter 1 have two 8 - bit registers, th1 and tl1. each timer/counter has 4 kind of clock sources which are fosc/4, fosc/64, fosc/1024 and fs. there are 3 operating modes in each timer/counter 0 and 1. the operating modes of time r/ counter0 is identical to timer/counter1. the overflow signal of each timer/counter is sampled at phase 2 in every system machine cycle, therefore when the system clock and the timer/counter clock both are from sub - oscillator, if the overflow frequency i s higher than fs/4 the overflow flag can not be sampled correctly. only one overflow flag can be sampled in a machine cycle others will be missed. mode 0 in mode 0, the timer/counters act as 13 - bit timer/counters. the 13 bits consist of 8 bits of thx and lower 5 bits of tlx. the upper 3 bits of tlx are ignored. the negative edge of the clock causes the content of the tlx register to increase one. when the fifth bit in tlx moves from 1 to 0, then the count in the thx register is incremented. when the count in thx moves from ffh to 00h, then the overflow flag tfx is set. the counted input is enabled only if trx is set and either gate=0 or intx =1. when c/ t is set to 0, then it will count clock cycles, and if c/ t is set to 1, then it will count 1 to 0 transitions on t0 (p3.4) for timer 0 and t1 (p3.5) for timer 1. when the 13 - bit count reaches 1fffh, the next count will cause it to rollover
p reliminary w925e/c240 8 - bit cid microcontroller - 37 - release da te : 2002 / 5 / 13 revision : a 3 to 0000h. the timer overflow flag tfx of the relevant timer is set an d if enabled an interrupts will occur. note that when they are used as a timer, the bits of the ckcon1 select the time - base. mode1 mode 1 is similar to mode 0 except that the counting register forms a 16 - bit counter, rather than a 13 bit counter. c/t = tmod.2 (c/t = tmod.6) m1,m0 = tmod.1,tmod.0 (m1,m0 = tmod.5,tmod.4) interrupt t0 = p3.4 (t1 = p3.5) th0 (th1) tl0 (tl1) tf0 (tf1) tr0 = tcon.4 (tr1 = tcon.6) gate = tmod.3 (gate = tmod.7) int0 = p3.2 (int1 = p3.3) 7 0 tfx 4 7 0 00 1 01 0 tm0=ckcon1.2, ckcon1.3 (tm1=ckcon1.4, ckcon1.5) mux 00 01 10 11 ps: functions of timer1 are shown in brackets fosc/4 fosc/64 fosc/1024 fs figure 6 - 5 mode 0 & mode 1 of timer/counter 0 & 1 mode 2 mode 2 is the auto reload mode. in mode 2, tlx acts as an 8 - bit count register, while thx holds the reload value. when the tlx registe r overflows from ffh to 00h, the tfx bit is set and tlx is reloaded with the content of thx, and the counting process continues from the reloaded tlx. the reload operation leaves the content of the thx register unchanged. counting is controlled by the trx bit and the proper setting of gate and intx pins. buzzer in mode 2, timer 0 can be use to output an arbitrary frequency to the buz pin by programming bit6 and bit7 of ckcon2. buz pin can be configured as key tone (kt) output by setting buzs l to high. when disable buzzer output by clearing enbuz to low, the buz output is in floating status. in the case where timer 0 clock input is ft, the desired frequency for buz output = ft / (255 ? preset value + 1) / 2 (hz).
p reliminary w925e/c240 8 - bit cid microcontroller - 38 - release da te : 2002 / 5 / 13 revision : a 3 c/t = tmod.2 (c/t = tmod.6) interrupt t0 = p3.4 (t1 = p3.5) th0 (th1) tl0 (tl1) tf0 (tf1) tr0 = tcon.4 (tr1 = tcon.6) gate = tmod.3 (gate = tmod.7) int0 = p3.2 (int1 = p3.3) 7 0 tfx 7 0 ps: functions of timer1 are shown in brackets 0 1 fosc/4 fosc/64 fosc/1024 fs mux tm0=ckcon1.2, ckcon1.3 (tm1=ckcon1.4, ckcon1.5) 1/2 kt ckcon2.7 =enbuz pin buz floating low 512hz 1024hz 2048hz mux ckcon2.5, ckcon2.4 00 01 10 11 00 01 10 11 ckcon2.6 =buzsl ft from tm0 figure 6 - 6 mode 2 of timer/counter 0 & 1 when f t equals 32768 hz, depending on the preset value of tm0, the buz pin will output a single tone signal in the tone frequency range from 64 hz to 16384 hz. the relation betwe en the tone frequency and the preset value of tm0 is shown in the table below. table 5 the relation between the tone frequency and the preset value of tm0 c c # b g f e d a # # d # # g f a e n o t tm0 preset value & buz frequency 3rd octave 4th octave 5th octave 261.63 277.18 293.66 311.13 329.63 349.23 369.99 392.00 415.30 440.00 466.16 493.88 523.25 554.37 587.33 622.25 659.26 698.46 739.99 783.99 830.61 880.00 932.23 987.77 260.06 277.69 292.57 309.13 327.68 348.58 372.35 390.08 420.10 442.81 c1h c5h c8h cbh ceh d1h d4h d6h d9h ddh dbh df h 468.11 496.48 e1h e3h e4h e6h e7h e9h eah ebh ech edh eeh efh 528.51 564.96 585.14 630.15 655.36 712.34 744.72 780.19 819.20 862.84 910.22 963.76 130.81 138.59 146.83 155.56 164.81 174.61 185.00 196.00 207.65 220.00 233.08 246.94 83h 8ah 90h 97h 9dh a2h a7h ach b1h bah b6h beh 131.07 138.84 146.28 156.03 165.49 174.30 184.09 195.04 207.39 221.40 234.05 248.24 tone frequency tone frequency tm0 preset value & buz frequency tone frequency tm0 preset value & buz frequency note: central tone is db (440 hz).
p reliminary w925e/c240 8 - bit cid microcontroller - 39 - release da te : 2002 / 5 / 13 revision : a 3 watchdog timer the watchdog timer is a free - running timer that can be programmed by the user to serve as a system monitor, a time - base generator or an event timer. it is basically a set of dividers that divides the system clock. the divider output is selectable an d determines the time - out interval. in the condition of the timer - out expiring, the wdt interrupt and wdt reset may be executed if the corresponding enable control bits are set. the interrupt will occur if the individual interrupt enable and the global ena ble are set. the interrupt and reset functions are independent of each other and may be used separately or together depending on the users software. 12 wd1,wd0 00 01 10 11 interrupt reset enable watchdog timer reset ewt(wdcon.1) reset watchdog rwt (wdcon.0) 1 13 15 16 18 19 21 time-out selector wdif wtrf 512 clock delay ewdi(eie.5) fosc fsub wfs(wdcon.4) figure 6 - 7 watchdog timer the watchdog timer should first be restarted by using rwt. this ensures that the timer starts from a known state. the rwt bit is used to restart the watchdog timer. this bit is self clearing, i.e. after writing a 1 to this bit the software will automatically clear it. the watchdog timer will now count clock cycles. the time - out interval is selected by the two bits wd1 and wd0 (ckcon.7 and ckcon.6). when the selected time - out occurs, the watchdog interrupt flag wdif (wdcon.3) is set. after the time - out has occurred, the watchdog timer waits for an additional 512 clock cycles. the software must issue a rwt to reset the watchdog before the 512 clocks have elapsed. if the watchdog reset ewt (wdcon.1) is enabled, then 512 clocks after the time - out, if there is no rwt, a syst em reset due to watchdog timer will occur. this will last for two machine cycles, and the watchdog timer reset flag wtrf (wdcon.2) will be set. this indicates to the software that the watchdog was the cause of the reset. when used as a simple timer, the re set and interrupt functions are disabled. the timer will set the wdif flag each time the timer completes the selected time interval. the wdif flag is polled to detect a time - out and the rwt allows software to restart the timer. the watchdog timer can also be used as a very long timer. the interrupt feature is enabled in this case. every time the time - out occurs an interrupt will occur if the global interrupt enable ea is set. table 6 time - out values for the watchdog timer wd1 wd0 wat chdog interval number of clocks fosc= 3.579545 mhz fosc= 32768 hz reset of clocks 0 0 2 12 4096 1.14 ms 0.125 s 4608 0 1 2 15 32786 9.15 ms 1 s 33280 1 0 2 18 262144 73.23 ms 8 s 262656 1 1 2 21 2097152 585.87 ms 64 s 2097664
p reliminary w925e/c240 8 - bit cid microcontroller - 40 - release da te : 2002 / 5 / 13 revision : a 3 the watchdog timer will de di sabled by a power - on/fail reset. the watchdog timer reset does not disable the watchdog timer, but will restart it. in general, software should restart the timer to put it into a known state. the control bits that support the watchdog timer are discussed b elow. watchdog control wdif: wdcon.3 - watchdog timer interrupt flag. this bit is set whenever the time - out occurs in the watchdog timer. if the watchdog interrupt is enabled (eie.5), then an interrupt will occur (if the global interrupt enable is set and other interrupt requirements are met). software or any reset can clear this bit. wtrf: wdcon.2 - watchdog timer reset flag. this bit is set whenever a watchdog reset occurs. this bit is useful for determined the cause of a reset. software must read it, and clear it manually. a power - fail reset will clear this bit. if ewt = 0, then this bit will not be affected by the watchdog timer. ewt: wdcon.1 - enable watchdog timer reset. this bit when set to 1 will enable the watchdog timer reset function. setting this bit to 0 will disable the watchdog timer reset function, but will leave the timer running rwt: wdcon.0 - reset watchdog timer. this bit is used to clear the watchdog timer and to restart it. this bit is self - clearing, so after the software writes 1 to it the hardware will automatically clear it. if the watchdog timer reset is enabled, then the rwt has to be set by the user within 512 clocks of the time - out. if this is not done then a watchdog timer reset will occur. clock control wd1,wd0: ckcon.7, ckcon.6 - watchdog timer mode select bits. these two bits select the time - out interval for the watchdog timer. the reset time is longer 512 clocks time than the interrupt time - out value. the default watchdog time - out is 2 12 clocks, which is the shortest time - out p eriod. the ewt, wdif and rwt bits are protected by the timed access procedure. this prevents software from accidentally enabling or disabling the watchdog timer. more importantly, it makes it highly improbable that errant code can enable or disable the wat chdog timer. 6.8 serial port 1 the p4.0 and p4.1 can be used as a 8 - bit serial input/output port1. p4.0 is the serial port 1 clock i/o pin and p4.1 is the serial port 1 data i/o pin. the serial port 1 is controlled by scon1 register which is described as below . sf1: serial port 1 interrupt flag. when 8 - bits data is transceived completely, sf1 is set by hardware. sf1 is cleared when serial interrupt1 routine is executed or cleared by software. ren1: set ren1 from 0 to 1 to start the serial port1 to receive 8 - bit serial data. sfq: sfq=0 serial clock output frequency is equal to f osc /2 sfq=1 serial clock output frequency is equal to f osc / 256 sedg: sedg=0 serial data latched at falling edge of clock, sclk=low initially. sedg=1 serial data latched at risi ng edge of clock, sclk=high initially. clkio: clkio=0 p4.0(sclk) work as output mode clkio=1 p4.0(sclk) work as input mode sio: sio=0 p4.0 & p4.1 work as normal i/o pin sio=1 p4.0 & p4.1 work as serial port1 function any instruction causes a writ e to sbuf1 will start the transmission of serial port 1. as the ren1 is from 0 to 1, the serial port 1 begins to receive a byte into sbuf1 in the frequency of the serial clock. ren1 could be cleared by software after receive function begins. the lsb is tra nsmitted/
p reliminary w925e/c240 8 - bit cid microcontroller - 41 - release da te : 2002 / 5 / 13 revision : a 3 received first. the i/o mode of serial clock pin is controlled by clkio. user has to take care the initial state of the serial port pins. c1 c2 c3 c4 p4.0 sf1 ren1 p4.1 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 sedg=1, rising latch p4.0 sedg=0, falling latch note: the serial clock frequency is fosc/2 data input figure 6 - 8 timing of the serial port 1 input function c1 c2 c3 c4 p4.0 data output sf1 ins. p4.1 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 sedg=1, falling changed p4.0 note: the serial clock frequency is fosc/2 sedg=0, rising changed serial out instruction figure 6 - 9 timing of the serial port 1 output function 6.9 comparator a built - in comparator to compare the analog signal. there is a analog input paths from pin vneg. two refe rence inputs, one is from pin vpos and other is from regulator output. when the voltage of positive input is higher than the negative input, the comparator output will be high. the resec(compr.3) is the result of the comparison. an internal rising signal o n resc produces interrupt flag of compf (exif.4). the flag compf is cleared when comparator interrupt routine is executed or cleared by software. set compen to enable the comparator function.
p reliminary w925e/c240 8 - bit cid microcontroller - 42 - release da te : 2002 / 5 / 13 revision : a 3 d ck c3 clr reset d ck resc clr compf=0 exif.4 (compf) compen vneg(p4.2) vpos(p4.4) ref1 x.xv regulator en scon1.5(regon) ref figure 6 - 10 the configuration of comparator the output voltage of the regulator is tunable by 4 bits in regulator voltage control register (regvc). when regvc is equal to 0ah, the output voltage is 1.0v. the higher value of regvc the lower volt age output of regulator. the adjustable voltage range is about from 0.72v to 1.48v . the variation of the voltage depends on the v dd . following is the table of regvc vs regulator voltage. regvc 00 01 02 03 04 05 06 07 08 09 0ah 0bh 0ch 0dh 0eh 0fh no loa ding(3v) 1.497 1.4464 1.3941 1.3426 1.2899 1.238 1.186 1.1352 1.081 1.029 0.976 0.924 0.869 0.815 0.762 0.7112 no loading(5v) 1.500 1.449 1.397 1.345 1.292 1.241 1.188 1.137 1.083 1.031 0.978 0.925 0.87 0.816 0.763 0.712 6.10 dtmf generator w925e/c240 provid es a dtmf generator which outputs the dual tone multi - frequency signal to the dtmf pin. the dtmf generator can work well at the operating frequency of 3.58mhz. a dtmf generator register dtmfg controls the dtmf output and specifys the desired low/high frequ ency. the tones are divided into two groups (low group and high group). when the generator is disable, the dtmf pin is in tri - state. the relation between the dtmf signal and the corresponding touch tone keypad is shown in figure 6 - 11 . 1 2 3 a 4 5 6 b 7 8 9 c * 0 # d r1 r2 r3 r4 c1 c2 c3 c4 row/col frequency r1 697 hz r2 770 hz r3 852 hz r4 941 hz c1 1209 hz c2 1336 hz c3 1477 hz c4 1633 hz figure 6 - 11 the relation between dtmf and keypad
p reliminary w925e/c240 8 - bit cid microcontroller - 43 - release da te : 2002 / 5 / 13 revision : a 3 bit: 7 6 5 4 3 2 1 0 - dtge he le l1 l0 h1 h0 mnemonic: dtmfg address: bah l1 l0 h1 h0 selected tone x x 0 0 1209hz x x 0 1 1336hz x x 1 0 1477hz x x 1 1 1633hz 0 0 x x 697hz 0 1 x x 770hz 1 0 x x 852hz 1 1 x x 941hz le: enable low gro up frequency output. he: enable high group frequency output. dtge: enable dual tone output to dtmf pin. 6.11 fsk generator w925e/c240 provides a fsk generator which outputs the fsk signal to the dtmf pin. the fsk output share with dtmf output pin. it can out fs k signal with 1200hz baud rate of itu - t v.23 or bellcore 202 signal. a fsk transmit data register (fsktb) specif ies the desired output data. t he fsk transmit control register (fsktc) can control whether the fsk signal will be output or not. the relation ti ming is show n in figure 6 - 12 enable signal (fte) latch clock data latch flag data (fsktb) bit0 (fds) fsk signal (dtmf pin) 1 0 1 1 0 0 hi-z hi-z auto clear interrupt occur when rising edge 1 0 1 1 0 833us [fsf] figure 6 - 12 fsk modulator fsk transimt control register (initial=00h) bit: 7 6 5 4 3 2 1 0 fte ftm fds - - - lo 1 lo0 mnemonic: fsktc address: c6h
p reliminary w925e/c240 8 - bit cid microcontroller - 44 - release da te : 2002 / 5 / 13 revision : a 3 fte: fsk transmit enable. enable=1 , disable=0 ftm: fsk signal standard. bellcore 202=1 , v.23=0 fds: fsk data sending status lo0, lo1: fsk transmit level option fsk output level lo1 lo0 150mv 0 0 120mv 0 1 95mv 1 0 75mv 1 1 fsk transmit data buffer (initial=00h) bit: 7 6 5 4 3 2 1 0 fsktb.7 fsktb.6 fsktb.5 fsktb.4 fsktb.3 fsktb.2 fsktb.1 fsktb.0 mnemonic: fsktb address: c7h fsktb.0:only this bit will be latched and send out as fsk signal when fte enable will set the fds to high to enable the internal latch clock in 1200hz. when fds is in high state, fsktb bit0 will be sent out by fsk modulator at the rising edge of latch clock . fds could be cleared by software to inform no more data will be sent out after the last bit is sent completely . if the fds is cleared then fte will become low at next rising latch clock to disable fsk modulator and clear fds by hardware automatically. when fte is set, fsk modulation flag (fsf) will be set at every rising edge of latch clock to produce an interrupt shared with cid interrupt routine. if a cid interrupt occurs, u ser can check fsf to know if this interrupt is caused by fsk modulator. the only way to stop fsk signal immediately is to dis able fte by software. 6.12 i/o ports there are five 8 - bits ports named from p0 to p4 in w925e/c240. all ports can be configured as input or output mode. except p0, every port has pull high resistor enable/disable by pxh register. after reset the initial state o f each port is in input mode and the value of the registers from p0 to p3 are ffh. the i/o port is described as below: p0 : i/o mode is controlled by p0io. only p0 output as open drain mode and without pull high resistor. p1 : i/o mode is controlled by p1io. pull high is controlled by p1h. p1.0~p1.3 work as int2 , p1.4~p1.7 work as int3 . falling edge on p1 pins to produce int2 and int3 flag. p1 is configured as int2/int3 by p1ef register. p2 : i/o mode is controlled by p2io. pull high is controlled by p2h. p3 : i/o mode is controlled by p3io. pull high is controlled by p3h. p3.5 t1 timer/counter 1 external count input p3.4 t0 timer/counter 0 external count input p3.3 int 1 external interrupt 1 p3.2 int 0 external interrupt 0 p4 : i/o mode is controlled by p4io. pull high is controlled by p4h. special function of p4 is described below. p4.7 - 5 i/o normal i/o p4.4 vpos positive input of the comparator p4.2 vneg negative input of the comparator p4.1 sdata serial port output p 4.0 sclk serial port input
p reliminary w925e/c240 8 - bit cid microcontroller - 45 - release da te : 2002 / 5 / 13 revision : a 3 6.13 divider a built - in 13/14 - bit binary up - counter designed to generate periodic interrupt. the clock source is from sub - oscillator. when the frequency of sub - crystal is 32768hz, it provides the divider interrupt in the period of 0.25/0.5 second. bit divs controls the degree of divider. when diva is high to enable the divided counter, when diva is low to reset divider and stop counting. as the divider overflows, the divider interrupt flag divf is set. divf is clear by software or s erving divider interrupt routine. 13 14 1 overflow divf (exif.3) divs (ckcon1.1) diva (divc.0) fs ck d q cr executing div int clear by software figure 6 - 13 13/14 - bit divider
p reliminary w925e/c240 8 - bit cid microcontroller - 46 - release da te : 2002 / 5 / 13 revision : a 3 6.14 calling identity delivery (cid) w925e/c240 provides type i and type ii of cid system. type i is on - hook calling with cid message and type ii is off - hook call on waiting. the cid function include s fsk decoder, dual tone alert signal detector, ring detector and dtmf receiver. the fsk demodulation function can demodulate bell 202 and itu - t v.23 frequency shift keying (fsk) with 1200 baud rate. the tone alert signal detect function can detect dual tones of bellcore customer premises equipment(cpe) tone alerting signal(cas) and bt idle state and loop state tone alert signal. the line reversal for bt, ring burst for cca or rin g signal for bellcore can be detected by ring detector. it is compatible with bellcore tr - nwt - 000030 & st - tsv - 002476, british telecom(bt) sin227, u.k. cable communications association(cca) specification. the dtmf receiver can be programmed as dtmf decoder to decode 16 dtmf signals or tone detector to detect the signal which frequency is in dtmf band. the tone detector can be an auxiliary detector to improve the performance of detecting tone alerting signal(cas), said as talk down - off, in type ii system. the fsk decoder, alert tone detector and dtmf receiver can be enable/disable individually by the bits of fske, case and dtmfe in fsk data register(fskdr). cide is the global control bit to enable/disable fsk decoder, alert tone detector and dtmf receiver. how ever, the ring detector is always active. fsk bandpass filter fsk demodulator fsk data output interface fsk carrier detector guard time circuit bias voltage generator to internal circuit clock driver to internal circuit vref fcd fdr fd7-fd0 cide,rst fm rngdi rngrc vadd vass fske fsk demodulation circuit dual tone alert signal detection circuit ring detector interrupt generator inp1 inn1 gcfb1 algo high tone bandpass filter low tone bandpass filter guard time timer high tone detector low tone detector decode data and latch dtmfd dd3-dd0 case dtmfe est dtmfpt/dtmfat fdata inp2 inn2 + - anti-alias filter gcfb2 input pre-processor caspt/casat rng cap pgaf <3:0> + - anti-alias filter input pre-processor pgaf <7:4> pgd <7:4> pgd <3:0> phad<3:0> phfl<7:4> high tone bandpass filter low tone bandpass filter high tone detector low tone detector phad<7:4> phfl<3:0> cidgd cidga ps: the signals noted in italic and underline type are cid pins on the chip. figure 6 - 14 the cid block diagram
p reliminary w925e/c240 8 - bit cid microcontroller - 47 - release da te : 2002 / 5 / 13 revision : a 3 ring detector the application cir cuit in figure 6 - 15 illustrates the relationship between the rngdi, rngrc and rng signals. the combination of rngdi and rngrc is used to detect an increase of the rngdi voltage from ground to a level above the schm itt trigger high going threshold voltage v t+ . tip/a r1=470k c1=0.1uf ring/b c1=0.1uf c3=0.22uf r5=150k r2=470k r3=200k r4=300k rngdi rngrc rng allowance minimal ring voltage (peak to peak) is: vpp (max ring) = 2 (v t+(max) (r1 + r3 + r4) / r4 + 0.7) tolerance to noise between tip and ring and vss is: vpeak (max noise) = v t+(min) (r1 + r3 + r4) / r4 + 0.7 time constant is: t = r5 c3 ln [vdd / (vdd - v t+ )] v t+(min) <= v t+ <= v t+(max) r5 from 10k ohm to 500k ohm. c3 from 47 nf to 0.68 uf . figure 6 - 15 application circuit of the ring detector the rc time constant of the rngrc pin is used to delayed the output pulse of the rng flag for a low going edge on rngdi. this edge goes from above the v t+ voltage to the schmitt trigger low going threshold voltage v t - . the rc time constant must be greater than the maximum period of the ring signal, to ensures a minimum rng high int erval and to filter the ring signal to get an envelope output. the rising signal of rng will set the bit rngf(cidfg.0) high to cause the cid flag(cidf) high. the diode bridge shown in figure 6 - 15 works for both sin gle ended ring signal and balanced ringing. the r1 and r2 are used to set the maximum loading and must be of equal value to achieve balanced loading at both the tip and ring line. r1, r3 and r4 form a resistor divider to supply a reduced voltage to the rng di input. the attenuation value is determined by the detection of minimal ring voltage and maximum noise tolerance between tip/ring and ground.
p reliminary w925e/c240 8 - bit cid microcontroller - 48 - release da te : 2002 / 5 / 13 revision : a 3 input pre - processor the input signal is processed by input pre - processor, which is comprised of two op amps an d a bias source(vref). the gain op - amps are used to bias the input voltage with the vref signal voltage. vref is v ad /2 typically, this pin is recommended to connect a 0.1 uf capacitor to v as . the gain adjustable op amps are sued to select the input gain by connecting a feedback resistor between gcfb and inn pins. figure 6 - 16 shows the differential input configuration and figure 6 - 17 shows the single - ended configuration. + - inp inn vref c1 c2 r1 r2 r3 r4 0.1uf r5 differential input amplifier c1 = c2 r1 = r2 r3 = (r4 r5) / (r4 + r5) voltage gain av = r5 / r1 input impedance zin = 2 r1 + (1 / wc) 2 2 gcfb figure 6 - 16 differential input gain control circuit + - inp inn vref c r1 0.1uf r2 voltage gain av = r2 / r1 gcfb 22n figure 6 - 17 single - ended input gain control circuit
p reliminary w925e/c240 8 - bit cid microcontroller - 49 - release da te : 2002 / 5 / 13 revision : a 3 cas/d tas detection in off - hook services (type ii), the detection of cas/dtas will affect the quality of the call waiting service. when the cas/dtas is sent from far end, sometimes the near end user maybe still talking. the cpe must be able to detect the cas/dt as successfully in the presence of near end speech. to detect cas/dtas from telephone hybrid receiver pair improves the detection. however in bt ? s on - hook cid system the cas/dtas detection is from tip/ring pair. the dual tone alert signal is separated into high and low tones and detected by a high/low tone detector. when the alert tone is recognized by the detector, the bit algo will go high and the rising signal will set the bit algof in cidfg to produce the cid flag(cidf). figure 6 - 18 shows the guard time waveform of detecting alert tone. the total recognition time is t rec =t dp +t gp , where t dp is the tone present detect time and t gp is the tone present guard time. the total absent guard time is t abs =t da +t ga where t da is the tone absent detect time and t ga is the tone absent guard time. the tone present/absent guard time is determined by guard - time timer which the input clock period is 0.858ms. when the alert tone is detected the internal signal algr will be set and th e rising edge of algr resets the guard - time timer and the timer starts up counting from 00h. as the content of the timer is the same as the register caspt, the timer stops counting and the bit algo will be set and the rising edge of algo triggers the flag algof to become high. the counting of tone absent time is similar to the counting of tone present time but the falling edge of algr/ algo replaces the rising edge and the casat replaces the caspt. the bit algo is controlled by hardware only. the flag algof is set by rising edge of algo and cleared by software. algr vin dual alert tone signal t dp t gp t da t ga * 1: guard time timer is reset and starts to up count from 00h. 2: guard time timer is reset and starts to up count from 00h. 3: the content of the guard-time timer reaches the content of aspt/asat. t rec t abs 1 2 3 3 *algr is an internal signal in the uc. + clear by software. algo algof + 1 t dp t da figure 6 - 18 guard time waveform of alert tone signal detection dtmf decoder the dtmf decoder shares the same input pre - processor wi th fsk decoder. the dual tone is separated into low group and high group by two scfs (switched capacitor filter. the method of dtmf detection is the same as alert tone detection. the present/absent guard time is adjusted by registers dtmfpt/dtmfat. as the dtmf signal is recognized and decoded, the bit dtmfd will be set and the decoded dtmf data is stored in bit0 to bit3 of register dtmfdr. the rising edge of dtmfd produces the flag dtmfdf. the bit dtmfd is controlled by hardware only. the flag dtmfdf is set by rising edge of dtmfd and cleared by software.
p reliminary w925e/c240 8 - bit cid microcontroller - 50 - release da te : 2002 / 5 / 13 revision : a 3 est vin (tip/ring) tone #n t dp t gp t rec t da t ga t abs dtmfd * 1 2 3 3 dtmfdr tone #n-1 tone #n * est is an internal signal in the circuit. + clear by software. 1: guard time timer is reset and starts to up count from 00h. 2: guard time timer is reset and starts to up count from 00h. 3: the content of the up counting timer reaches the register dtmfpt/dtmfat. dtmfdf + figure 6 - 19 the waveform of dtmf detection tone detector in off - hook state, said type ii system, detecting tone alert signal(cas) is easi ly interfered by human ? s voice or other noise in voice band. sometimes the interference makes falsely recognizing a noise as a cas(talk - off), or lost detecting a real cas(talk - down). the dtmf can be programmed as a tone detector by setting bit 4 of dtmfr2. the frequency band of the tone detector is dtmf frequency from 697hz to 1633hz. once the tone detector gets signals in the band, the bit of dtmfh or dtmfl in register dtmfdr will become high immediately. user can poll these 2 bits to check if the tone exi sts on the tip/ring. the input gain of tone detector is the same as dtmf receiver. fsk decoder the fsk carrier detector provides an indication of the present of a signal within the fsk frequency band. if the output amplitude of the fsk band - pass filter is sufficient to be detected continuously for 8 ms, the fsk carrier detected bit fcd will go high and it will be released if the fsk band - pass filter output amplitude is not able to be detected for greater than 8 ms. the 8 ms is the hysteresis of the fsk carr ier detector. figure 6 - 20 shows the timing of fsk carrier detection. tip/ring fcd analog fsk signal t cp t ca fske t fske analog fsk signal t cp t ca note figure 6 - 20 fsk detection enable and fsk carrier present and absent ti ming the fsk demodulation function can demodulate bell 202 and itu - t v.23 frequency shift keying (fsk) with 1200 baud rate. when the decoder receives the fsk serial data, the serial data will be demodulated into bit fdata with 1200 baud rate in the mean ti me the synchronous clock signal is output to the bit fclk. as the decoder receives one byte, the internal serial - to - parallel circuit sets the bit fdr and converts the 8 - bit serial data into the byte register fskdr. the rising edge of bit fdr will set the f lag fdrf to produce cid interrupt but fdrf is cleared by software. user
p reliminary w925e/c240 8 - bit cid microcontroller - 51 - release da te : 2002 / 5 / 13 revision : a 3 can get the fsk data by reading register fskdr or sampling the bit fdata. the timing of fsk demodulation is shown in figure 6 - 21 . tip/ring 1* 1 0 b0 b1 b2 start b3 b4 b5 b6 b7 1* 0 b0 b1 b2 b3 b4 b5 b6 b7 1 1 0 b0 stop start stop start fdata b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7 start stop start stop start t idd fclk fdr 1/f dclk0 t crd t rh 1st byte data 2nd byte data 1st byte data 2nd byte data * mark bit or redundant stop bit(s), will be omitted. + clear by software. fdrf + fskdr 1st byte data 2nd byte data figure 6 - 21 serial data interface timing of fsk demodulation cid input gain control the cid input gain and input hysteresis are controllable by internal cid gain control registers. cidgd and c idga registers determine the 6 internal cid gain control registers. cid gain control data register (cidgd) presents the data bus. the lower 3 bits of cid gain control address register (cidga) presents the address. the rising edge of cidga.4 will latch the cidgd in the corresponding internal cid gain control register. the 6 internal cid gain control registers are addressed as following table. setting the 6 registers as the suggestion value guarantees the cid spec. address (cidga.2 - 0) internal cid gain contr ol register suggestion value 000 dtmfr1 : dtmf register1 0000 0001b 001 dtmfr2 : dtmf register2 011 x 0001b 002 pgaf : programmable gain control alert tone and fsk 99h 003 pgad : programmable gain control dtmf a7h 004 phad : programmable hysteresis alert t one and dtmf 35h 005 phfl : programmable hysteresis fsk and low pass filter 33h x=0 dtmf receiver works a dtmf decoder, x=1 dtmf receiver works as a tone detector. the signals to set internal cid gain control registers is shown in figure 6 - 22
p reliminary w925e/c240 8 - bit cid microcontroller - 52 - release da te : 2002 / 5 / 13 revision : a 3 cidgd cidga<2:0> cidga.3 cidgd cidga rising latch figure 6 - 22 internal cid gain control register setting waveform dtmfr1 dtmfr1[7:4] are reserved bits and must be 0000b. bit3~bit0 acceptable err or percentage to sample 4 period of row freq. 0000 0.6% (default) 0001 2.5% 001x 3.5% 01xx reserved 1xxx reserved dtmfr2 bit3~bit0 acceptable error percentage to sample 4 period of col freq. 0000 0.5% (default) 0001 1.5% 001x 2.5% 01xx reserved 1xxx reserved the acceptable error percentage may have small variation by different test environments. dtmfr2.4=0 dtmf receiver works as a dtmf receiver dtmfr2.4=1 dtmf receiver works as a tone detector dtmfr2.5=0 dtmf pt counter is up counter type, de tected frequency changed does not effect counter dtmfr2.5=1 dtmf pt counter is up counter type, detected frequency changed resets dtmf pt counter dtmfr2.6=0 dtmf at counter is up - down counter type, up counting when no dtmf detected, down counting if dtmf detected again. dtmfr2.6=1 dtmf at counter is up counter type, up counting when no dtmf detected, pause counting if dtmf detected again. dtmfr2.7: reserved there are 4 programmable gain arrays, shown in figure 6 - 14 , are determined by low/high nibbles of pgxx. the following table lists the input gain corresponding to the value of l/h nibble of pgxx. x 20 log((40+15*x)/(230 - (40+15*x))) db x 20 log((40+15*x)/(230 - (40+15*x))) db 0 - 13.53 6 2.28 1 - 10.05 7 4.64 2 - 7.18 8 7.18 3 - 4.64 9 10.05 4 - 2.28 10 13.53
p reliminary w925e/c240 8 - bit cid microcontroller - 53 - release da te : 2002 / 5 / 13 revision : a 3 5 0.00 x is the value of l/h nibble of pgxx there are 4 programmable hysteresis input buffer, shown in figure 6 - 14 , are determined by low/ high nibbles of phxx. t he hysteresis control fo r mulas are list below. alert tone hysteresis hat=13mv + 3mv*x x=phad<7:4> dtmf hysteresis hdtmf=6mv + 3mv*x x=phad<3:0> fsk hysteresis hfsk=13mv + 3mv*x x=phfl<7:4> fsk detector hysteresis hfskd=13mv + 3mv*x x=phfl<3:0> applicat ion circuit the analog interface circuit of w925e/c240 shown in figure 6 - 23 is a typical cpe system. the gain control op - amp is set to unit gain to allow the electrical characteristics to be met in this application circuit. 34k 34k 430k 430k 22nf 22nf 53k6 60k4 464k inp2 inn2 gcfb2 vref cap rngdi rngrc inp1 0.1uf 470k 470k 0.1uf 0.1uf 200k 100k 150k tip/a ring/b inn1 gcfb1 464k 464k 464k 60k4 60k4 464k speech network speaker microphone tx+ tx- rx+ rx- tip ring resistor must have 1% tolerance resistor must have 5% tolerance 0.47u 22nf 22nf figure 6 - 23 application circuit of cid
p reliminary w925e/c240 8 - bit cid microcontroller - 54 - release da te : 2002 / 5 / 13 revision : a 3 application environment there are three major timing differences for cid sequences, bellcore, bt and cca. figure 6 - 24 is the timing diagram for bellcore on - hook data transmission and figure 6 - 25 is the timing d i agram for the bellcore off - hook data transmission. figure 6 - 26 is the timing diagram for the bt caller display service on - hook data tr a nsmission and figure 6 - 27 is the timing diagram for the bt caller display service off - hook data transmission. figure 6 - 28 is the timing diagram for the cca caller display service for on - hook data transmission. the cid flag (cidf) must be cleared by software when each time the cid interrupt routine is serviced. the cid global enable signal (cide) must be set high . tip/ring rng fske fcd fdr fclk fdata 1st ring ch. seizure mark message 2nd ring a ... ...101010... b c d e f data ... cidf ... ... a = 2 sec typical b = 250-500ms c = 250ms d = 150ms e = depend on data length max c+d+e = 2.9 to 3.7 sec f >= 200ms figure 6 - 24 input and output timing of bellcore on - hook data transmission
p reliminary w925e/c240 8 - bit cid microcontroller - 55 - release da te : 2002 / 5 / 13 revision : a 3 tip/ring fske fcd fdr fclk fdata algo cpe unmutes handset and enable keypad g cas t rec t abs a b ack c cpe goes off-hook d e f mark message cpe sends cpe mutes handset & disables keypad ... data cidf ... a = 75 - 85ms b = 0 - 100ms c = 55 - 65ms d = 0 - 500ms e = 58 - 75ms f = depends on data length g <= 50ms ase figure 6 - 25 input and output timing of bellcore off - hook data transmission
p reliminary w925e/c240 8 - bit cid microcontroller - 56 - release da te : 2002 / 5 / 13 revision : a 3 a/b wires rngon ase algo te dc load te ac load fske fcdn fdrn dclk data line reversal alert signal ch. seizure mark message ring t rec t abs 15 1 ms 20 5 ms a b c d e f g ... ... ...101010... data note 1 50 - 150 ms note 2 note 3 < 120ua zss (refer to sin227) current wetting pulse (refer to sin227) cidf ... ... < 0.5 ma (optiona) a >= 100ms b = 88 - 100ms c >= 45ms (up to 5sec) d = 80 - 262ms e = 45 - 75ms f <= 2.5s (500ms typical) g >= 200ms figure 6 - 26 input and output timing of bt idle state (on - hook) data transmission note: 1. sin227 specifies that t he ac and dc loads should be applied at 20 5ms after the end of the dual tone alert signal. 2. sin227 specifies that the ac and dc loads should be removed between 50 ? 150ms after the end of the fsk signal. 3. the fske bit should be set low to disable the fsk decoder when fsk is not expected. the tone alerting signal speech and the dtmf tones are in the same frequency band as the fsk signal.
p reliminary w925e/c240 8 - bit cid microcontroller - 57 - release da te : 2002 / 5 / 13 revision : a 3 tip/ring fske fcd fdr fclk fdata algo cpe unmutes handset and enable keypad h cas t rec t abs b c ack d cpe goes off-hook e f g mark message cpe sends cpe mutes handset & disables keypad ... data cidf ... a = 40 - 50ms b = 80 - 85ms c <= 100ms d = 65 - 75ms e = 5 - 100ms f = 40 - 75ms g = depends on data length h <= 100ms ase start point a note 1 note 3 note 2 note 4 note 5 figure 6 - 27 input and output timing of bt lo op state (off - hook) data transmission note: 1. in a cpe where ac power is not available, the designer may choose to switch over to line power when the cpe goes off - hook and use battery power while on - hook. 2. the fske bit may be set low to prevent the al ert tone, speech or other fsk in - band noise decoded by fsk demodulator and give false data when the dual tone alert signal is expected. if the fske pin can not controlled by micro - controller, the fske bit must always placed in high state and the micro cont roller must give up the fsk decoded data when the fsk signal is not expected. 3. the exchange will have already disabled the speech path to the distant customer in both transmission directions. 4. the fske should be set high as soon as the cpe has finish ed sending the acknowledge signal ack. 5. the fske may be set low after the last byte (check sum) has been decoded or fcd has become inactive. 6. in an unsuccessful attempts where the exchange does not send the fsk signal, the cpe should disable fske, un - mute the handset and enable the keypad after this interval.
p reliminary w925e/c240 8 - bit cid microcontroller - 58 - release da te : 2002 / 5 / 13 revision : a 3 a/b wires rng cide te dc load te ac load fske fcd fdr fclk fdata line reversal ring burst ch. seizure mark message first ring cycle a b c d e f ... ... ...101010... data note 2 note 3 note 4 cidf ... ... 250 - 400 ms 50 - 150 ms note 1 a = 200 - 450ms b >= 500ms c = 80 - 262ms d = 45 - 262ms e <= 2.5sec (500ms typical) f >= 200ms figure 6 - 28 input and output timing of cca caller display service data transmission notes: 1. the cpe designer may c hoose to set fske always high while the cpe is on - hook and the fsk signal is expected. 2. tw/p & e/312 specifies that the ac and dc loads should be applied between 250 - 400 ms after the end of the ring burst. 3. tw/p & e/312 specifies that the ac and dc loads should be removed between 50 - 150 ms after the end of the fsk signal. 4. the cid may not be enable up at the first ring cycle after the fsk data had been processed.
p reliminary w925e/c240 8 - bit cid microcontroller - 59 - release da te : 2002 / 5 / 13 revision : a 3 7 electrical character istics 7.1 maximum ratings* (voltage referenced to vss pin) para meter symbol rating units 1 supply voltage with respect to vss v dd - 0.3 to 6 v 2 voltage on any pin other than supplies (note 1) - 0.7 to vdd + 0.7 v 3 current at any pin other than supplies 0 to 10 ma 4 storage temperature tst - 65 to 150 j note: *. exposure to conditions beyond those listed under absolute maximum ratings may adversely affect the lift and reliability of the device. 1. vdd + 0.7 should not excess maximum rating of supply voltage. 7.2 recommended operating conditions characteris tics symbol rating unit power supplies (analog) v ad 3.0 to 6.0 v power supplies (digital) v dd 2.2 to 6.0 v main clock frequency f osc 3.579545 mhz sub clock frequency f sub 32768 hz tolerance on clock frequency d f c - 0.1 to + 0.1 % operation temperature t op 0 to 75 c 7.3 dc electr i c al characteristics parameter symbol condition min typ max unit note operating current i op1 fsk on, dual clock, normal run 2.8 ma i op2 fsk off, dual clock, normal run 1.3 ma i op3 fsk off, sl ow run, main osc stopped 50 ua i op4 idle mode, dual clock 500 ua i op5 idle mode, main osc stopped 50 ua i op6 power down mode 1 ua i/o ports input high voltage v ih 0.7v dd v dd v i/o ports input low voltage v il v ss 0.3v dd v i/o port s output high voltage v oh i oh = 2.0ma 2.4 - - v i/o ports output low voltage v ol i ol = 2.0ma - - 0.4 v
p reliminary w925e/c240 8 - bit cid microcontroller - 60 - release da te : 2002 / 5 / 13 revision : a 3 buz pin output high voltage v boh i oh = 3.5ma 2.4 - - v buz pin output high voltage v bol i ol = 3.5ma 0.4 - - v dtmf output dc level v tdc r l = 5k w , v dd = 2.5 - 3.8 1.1 - 2.8 v dtmf distortion dthd r l = 5k w , v dd = 2.5 - 3.8 - - 30 - 23 db dtmf output voltage v to low group, r l = 5k w 130 150 170 mv rms pre - emphasis col/row 1 2 3 db fsk output dc level v fdc r l = 5k w , v dd = 2.5 - 3.8 1.1 - 2.8 v fs k distortion fthd r l = 5k w , v dd = 2.5 - 3.8 - - - 30 db fsk output voltage v fd r l = 5k w 75 150 170 mv rms port pull high resistor r ph 100 360 1000 k w schmitt i n put high threshold v t+ rngdi, rngrc 0.48v ad - 0.68v ad v schmitt i n put high threshold v t - rngdi, rngrc 0.28v ad - 0.48v ad v schmitt hy s teresis v hys rngdi, rngrc 0.2 v rngrc low sink current i rngl rngrc 2.5 ma input current i in inpx, innx, rngdi - - 1 m a reference output voltage v ref vref 0.5v ad ? 4% - 0.5v ad + 4% v no load referen ce output resistance r ref vref - - 2 k w
p reliminary w925e/c240 8 - bit cid microcontroller - 61 - release da te : 2002 / 5 / 13 revision : a 3 7.4 electrical characteristics - gain control op - amplifier (electrical characteristics supersede the recommended operating conditions unless otherwise stated.) parameter symbol min typ ? max units test conditions input leakage current i in 1 m a v ss v in v dd input resistance r in 10 m w input offset voltage v os 25 mv power supply rejection ratio psrr 40 db 1 khz 0. 1 vpp ripple on v dd maximum capacitive load (gcfbx) c l 100 pf maximum resistive load (gcfbx) r l 50 k w note: " ? " typical figure are at v dd = 5v and temperature = 25 j are design aids only, not guaranteed and not subject to production testing. 7.5 ac electrical characteristics (ac timing characteristics supersede the recommended operating conditions unless otherwise stated.) dual tone alert signal detection interface para meter symbol min typ max units notes low tone frequency f l 2130 hz high tone frequency f h 2750 hz frequency deviation accept 1.1 % 3 frequency deviation reject 3.5 % 4 maximum input signal level 0.22 dbm a input sensitivity per tone - 40 - 38 dbm 5 reject signal level per tone - 48 dbm 5 positive and negative twist b accept 7 db noise tolerance snr tone 20 db 1, 2 notes: a. dbm = decibels with a reference power of 1 mw into 600 ohms, 0 dbm = 0.7746 vrms. b. twist = 20 log (f h amplitude / f l amplitude). 1. both tones have the same amplitude. both tones are at the nominal frequencies. 2. band limited random noise 300 - 3400 hz. present only when tone is present. 3. range within which tones are accepted. 4. ranges outside of whic h tones are rejected. 5. these characteristics are at v dd = 5v and temperature = 25 j . dual tone alert signal detection parameter condition symbol min typ ? max units notes alert signal present detect time t dp 0.5 10 ms alert signal absent detect time algr t da 0.1 8 ms " ? " typical figure are at v dd = 5v and temperature = 25 j are design aids only, not guaranteed and not subject to production testing.
p reliminary w925e/c240 8 - bit cid microcontroller - 62 - release da te : 2002 / 5 / 13 revision : a 3 fsk detection interface parameter symbol min typ max units notes input frequency detection bell 202 mark (logic 1) bel l 202 space (logic 0) itu - t v.23 mark (logic 1) itu - t v.23 space (logic 0) f mark f space f mark f space 1188 2178 1280.5 2068.5 1200 2200 1300 2100 1212 2222 1319.5 2131.5 hz +/ - 1 % +/ - 1 % +/ - 1.5 % +/ - 1.5 % maximum input signal level - 5.78 dbm input sensitivity - 43 dbm 1, 3 transmission rate 1188 1200 1212 baud input noise tolerance snr tone 20 db 1, 2 notes: 1. both mark and space have the same amplitude. both mark and space are at the nominal frequencies. 2. band limited random noise 300 - 3400 hz. present only when fsk signal is present. 3. these characteristics are at vdd = 5v and temperature = 25 j . fsk detection parameter condition symbol min typ ? max units notes fsk detection enable time fske t fs k 25 ms input fsk to fcd high delay t cp 25 ms input fsk to fcd low delay fcd t ca 8 ms data ready ack time fdr t dr 415 416 417 us 2 rate 1188 1200 1212 bps 1 input fsk to data delay data t idd 1 5 ms frequency f dclk 1201.6 1202.8 120 4 hz 2 high time t ch 415 416 417 us 2 low time dclk t cl 415 416 417 us 2 dclk to fdr delay dclk, fdr t crd 415 416 417 us 2 note : 1. fsk input data rate at 1200 +/ - 12 baud. 2. osci frequency at 3.579545 mhz +/ - 0.1%. " ? " ty pical figure are at v dd = 5v and temperature = 25 j are design aids only, not guaranteed and not subject to production testing. dtmf decoder parameter symbol min typ max units notes input sensitivity per tone - 29 1 dbm 1,2 positive and negative twist accept 7 db 1,2 frequency deviation accept 1.5 % 1,2 frequency deviation reject 3.5 % 1,2 3rd tone tolerance - 16 db 1,2,3 noise tolerance - 12 db 1,2,3 dial tone tolerance 22 db 1,2,4 note : 1. signal consists of all dtmf tones. 2. t one duration is 40ms at least, tone pause duration is 40ms at least. 3. referenced to the lowest level frequency component in dtmf signal. 4. referenced to the minimum valid accept level.
p reliminary w925e/c240 8 - bit cid microcontroller - 63 - release da te : 2002 / 5 / 13 revision : a 3 dtmf detection interface parameter condition symbol min typ ? max units notes dtmf present detect time t fp 0.5 8 ms dtmf absent detect time est t fa 0.1 8 ms dtmf detected duration dtmfd=1 t dd 40 ms dtmf signal ignore time dtmfd=0 t di 20 ms dtmf pause accept time dtmfd=1 t dpa 2 0 ms " ? " typical figure are at v dd = 5v and temperature = 25 j are design aids only, not guaranteed and not subject to production testing.
p reliminary w925e/c240 8 - bit cid microcontroller - 64 - release da te : 2002 / 5 / 13 revision : a 3 8 package 100l qfp(14x20x2.75mm footprint 4.8mm) e h y a a2 seating plane l l 1 see detail f 0.08 0 7 0 0.003 2.40 1.40 19.20 1.20 18.80 1.00 18.40 0.064 0.055 0.992 0.756 0.047 0.976 0.740 0.039 0.960 0.746 0.65 20.10 14.10 0.20 0.40 2.87 20.00 14.00 2.72 19.90 13.90 0.10 0.20 2.57 0.791 0.555 0.008 0.016 0.113 0.787 0.551 0.107 0.026 0.783 0.547 0.004 0.008 0.101 symbol min nom max max nom min dimension in inch dimension in mm a b c d e h d h e l y a a l 1 1 2 e 0.012 0.006 0.15 0.30 24.40 24.80 25.20 7 0.020 0.032 0.498 0.802 0.35 0.25 0.010 0.014 0.018 0.45 q q controlling dimension : millimeters a1 e d h d e b c


▲Up To Search▲   

 
Price & Availability of W925C240

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X